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 restartPolicy: Never
containers: containers:
- name: post-install - name: post-install
image: bitnami/kubectl:latest image: {{ .Values.postInstallJob.postInstallContainerImage }}
command: command:
- /bin/sh - /bin/sh
- -c - -c

View File

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

View File

@ -17,6 +17,15 @@ components: []
# "schedulerEstimator" # "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 ## karmada certificate config
certs: certs:
## @param certs.mode "auto" and "custom" are provided ## @param certs.mode "auto" and "custom" are provided