From b86e09cbd5f53c778375aaf3ecaac7dc4e12440f Mon Sep 17 00:00:00 2001 From: pigletfly Date: Wed, 3 Nov 2021 12:51:33 +0800 Subject: [PATCH] Make post-install-job pre-install-job image configurable Signed-off-by: pigletfly --- charts/templates/post-install-job.yaml | 2 +- charts/templates/pre-install-job.yaml | 4 ++-- charts/values.yaml | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/charts/templates/post-install-job.yaml b/charts/templates/post-install-job.yaml index 692c090cb..2fe085589 100644 --- a/charts/templates/post-install-job.yaml +++ b/charts/templates/post-install-job.yaml @@ -79,7 +79,7 @@ spec: restartPolicy: Never containers: - name: post-install - image: bitnami/kubectl:latest + image: {{ .Values.postInstallJob.postInstallContainerImage }} command: - /bin/sh - -c diff --git a/charts/templates/pre-install-job.yaml b/charts/templates/pre-install-job.yaml index 9f58a475d..4e54fd75f 100644 --- a/charts/templates/pre-install-job.yaml +++ b/charts/templates/pre-install-job.yaml @@ -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 diff --git a/charts/values.yaml b/charts/values.yaml index 48859a369..80db79530 100644 --- a/charts/values.yaml +++ b/charts/values.yaml @@ -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