-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Populate pod environment variables from secrets #481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
bb7e74f
Populate pod environment variables from secrets
kupson 669182a
Fix suggested by golangcibot
kupson 199784a
Address review comment - ConfigMap is not deprecated
kupson aa99b59
Be clear that SecretKeySelector is used to reference secrets in pod_e…
kupson ee2707e
Autogenerated code for PodEnvironmentSecretKeys
kupson 36211c6
Restart StatefulSet Pods on pod environment secret's changes.
kupson 276818e
Hash.Write() cannot return error, ignore returned values.
kupson 3d4cf56
Use separator when updating hash
kupson cf15625
Extract PodEnvironmentConfigMap and PodEnvironmentSecret handling int…
kupson 4833dff
Better annotation name
kupson 641373c
Less indentation
kupson 79a63d1
Comment about hash content
kupson 6279942
Extract annotations handling from getPodEnvironmentSecretVariables()
kupson 01a007a
Move annotation format string to constants module
kupson 5305c85
Add unit tests for PodEnvironmentConfigMap and PodEnvironmentSecretName
kupson 723fde1
Update documentation - when changes in PodEnv ConfigMap or Secret are…
kupson a117e2e
Don't add follow-secret annotation if there is no secret
kupson 4d7115d
Avoid Pod restarts
kupson bd0df37
add hashUpdate helper
kupson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why sorting ? to simplify displaying ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it moved from:
postgres-operator/pkg/cluster/k8sres.go
Lines 777 to 778 in 5f6abfb
That's because the
customPodEnvVarsListis being appended not only byPodEnvironmentConfigMapcode but alsoPodEnvironmentSecretName.