-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix: Allow multiple imagePullSecrets to work #168
base: main
Are you sure you want to change the base?
Conversation
da3b367
to
2688563
Compare
2688563
to
0647b1e
Compare
0647b1e
to
83c3b42
Compare
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
@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. |
Hmm, I do have |
(Though if I've still got it wrong and you don't mind fixing it, I'd appreciate it 😄) |
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.md
via helm-docs (ormake prep
)pre-commit run --all-files
via pre-commit (ormake prep
)Chart.yaml
->artifacthub.io/changes
,artifacthub.io/images
)