fix: Allow multiple imagePullSecrets to work#168
Open
mikebryant wants to merge 5 commits intoestahn:mainfrom
Open
fix: Allow multiple imagePullSecrets to work#168mikebryant wants to merge 5 commits intoestahn:mainfrom
mikebryant wants to merge 5 commits intoestahn:mainfrom
Conversation
da3b367 to
2688563
Compare
2688563 to
0647b1e
Compare
0647b1e to
83c3b42
Compare
Author
|
Heya @estahn, would you be able to take a look at this? :) |
This fixes an issue where the extra indentation causes invalid yaml if 2+ imagePullSecrets are specified. Also don't set them at all if not asked for - this fixes an issue for us where it conflicts with a kyverno ClusterPolicy that defaults our imagePullSecrets for everything, and the explicit setting of [] was causing a persistent diff in ArgoCD
83c3b42 to
b19efe4
Compare
Owner
|
@mikebryant Looks fine. Could you fix up the helm-docs issue? Otherwise I'll do it :) ... I think if you allow commits from upstream CI should auto-fix it, but not sure. |
Author
|
Hmm, I do have |
Author
|
(Though if I've still got it wrong and you don't mind fixing it, I'd appreciate it 😄) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
This fixes an issue where the extra indentation causes invalid yaml if 2+ imagePullSecrets are specified.
Also don't set them at all if not asked for - this fixes an issue for us where it conflicts with a kyverno ClusterPolicy that defaults our imagePullSecrets for everything, and the explicit setting of [] was causing a persistent diff in ArgoCD
Changes
Multiple image pull secrets will no longer cause a yaml error
Not setting imagepullsecrets will now template as not setting that parameter, rather than explicitly setting it to
[]Testing
Tested locally:
Code Author Checklist
Chart.yaml->version)values.schema.json)README.mdvia helm-docs (ormake prep)pre-commit run --all-filesvia pre-commit (ormake prep)Chart.yaml->artifacthub.io/changes,artifacthub.io/images)