Make post-install-job pre-install-job image configurable

Signed-off-by: pigletfly <wangbing.adam@gmail.com>
This commit is contained in:
pigletfly 2021-11-03 12:51:33 +08:00
parent a6fd93fd23
commit b86e09cbd5
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