-
Notifications
You must be signed in to change notification settings - Fork 1.6k
🐛 (helm/v2alpha): imagePullSecrets parsing in helm v2-alpha plugin #5242
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
base: master
Are you sure you want to change the base?
🐛 (helm/v2alpha): imagePullSecrets parsing in helm v2-alpha plugin #5242
Conversation
|
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zarcen The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Welcome @zarcen! |
|
Hi @zarcen. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
6fdd5f2 to
1641876
Compare
ed0114a to
6f37228
Compare
The change is to bridge the gap of
helm/v2alphawhen using images in the private registry.If users have private image and set
imagePullSecretsin the original kustomize, it is not parsed and templated accordingly to helm.This update allows manager Helm chart to take
imagePullSecretsinto account and generate the template for it.Tests:
Rather than changing the
test/testdata/generate.sh, just keep it as most users may not needimagePullSecrets.For users who add
imagePullSecretsin their kustomization underconfig/manager/manager.yaml, this will work nicely.spec: template: spec: + imagePullSecrets: + - name: ghcr-creds containers: - command: - /managerThis is validated with
make generate-chartsby applying a local change oftestdata/project-v4-with-plugins/config/manager/manager.yamlThe resulting helm template of manager-deployment looks like:
Closes #5241