feat: existing secret support #185
Open
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.
This pull request adds support for using an existing Kubernetes Secret for Docker Registry credentials and configuration, instead of always creating a new one. This makes it easier to manage secrets externally and improves flexibility for deployments. The documentation, templates, and values have all been updated to reflect this new option.
Key changes include:
Support for Existing Secret:
existingSecret
value invalues.yaml
and documented its usage inREADME.md
, allowing users to specify the name of a pre-existing Kubernetes Secret for registry credentials. [1] [2]_helpers.tpl
to use the newdocker-registry.secretName
template, which chooses between the existing secret and the default generated secret. [1] [2] [3] [4] [5] [6]Template and Resource Adjustments:
secret.yaml
to only create a new Secret ifexistingSecret
is not set, preventing duplicate or unnecessary secrets. [1] [2]deployment.yaml
andcronjob.yaml
to only annotate with the secret checksum when a new secret is created, ensuring correct rolling updates. [1] [2]NOTES.txt
to inform users when an existing secret is being used, with a reminder about required keys.Version Bump:
3.1.0
to reflect the new feature.