Merge pull request #913 from pigletfly/fix-helm-install

Make post-install-job pre-install-job image configurable
This commit is contained in:
karmada-bot 2021-11-04 14:54:10 +08:00 committed by GitHub
commit c0e293ee53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View File

@ -79,7 +79,7 @@ spec:
restartPolicy: Never
containers:
- name: post-install
image: bitnami/kubectl:latest
image: {{ .Values.postInstallJob.postInstallContainerImage }}
command:
- /bin/sh
- -c

View File

@ -137,7 +137,7 @@ spec:
restartPolicy: Never
initContainers:
- name: init
image: cfssl/cfssl
image: {{ .Values.preInstallJob.initContainerImage }}
workingDir: /opt/mount
command:
- /bin/sh
@ -172,7 +172,7 @@ spec:
mountPath: /opt/configs
containers:
- name: pre-install
image: bitnami/kubectl:latest
image: {{ .Values.preInstallJob.preInstallContainerImage }}
workingDir: /opt/mount
command:
- /bin/sh

View File

@ -17,6 +17,15 @@ components: []
# "schedulerEstimator"
# ]
## pre-install job config
preInstallJob:
initContainerImage: cfssl/cfssl
preInstallContainerImage: bitnami/kubectl:latest
## post-install job config
postInstallJob:
postInstallContainerImage: bitnami/kubectl:latest
## karmada certificate config
certs:
## @param certs.mode "auto" and "custom" are provided