diff --git a/charts/t8s-cluster/templates/_etcd-defrag.yaml b/charts/t8s-cluster/templates/_etcd-defrag.yaml index cca7e79f14..ce4ebe9053 100644 --- a/charts/t8s-cluster/templates/_etcd-defrag.yaml +++ b/charts/t8s-cluster/templates/_etcd-defrag.yaml @@ -32,7 +32,7 @@ spec: - name: ETCDCTL_ENDPOINTS value: {{ .hosted | ternary (printf "kmc-%s-etcd:2379" .Release.Name) "localhost:2379" }} image: {{ include "common.images.image" (dict "imageRoot" .Values.global.etcd.image "global" .Values.global) }} - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ include "common.images.pullPolicy" .Values.global.etcd.image }} name: etcd-defrag securityContext: runAsGroup: 1000 diff --git a/charts/t8s-cluster/templates/workload-cluster/pre-install/_uninstall-job.yaml b/charts/t8s-cluster/templates/workload-cluster/pre-install/_uninstall-job.yaml index f4dcde5394..7f71bd1e6c 100644 --- a/charts/t8s-cluster/templates/workload-cluster/pre-install/_uninstall-job.yaml +++ b/charts/t8s-cluster/templates/workload-cluster/pre-install/_uninstall-job.yaml @@ -29,7 +29,7 @@ spec: containers: - name: uninstall image: {{ include "common.images.image" (dict "imageRoot" .Values.global.kubectl.image "global" .Values.global) }} - imagePullPolicy: {{ empty .Values.global.kubectl.image.digest | ternary "Always" "IfNotPresent" }} + imagePullPolicy: {{ include "common.images.pullPolicy" .Values.global.kubectl.image }} securityContext: readOnlyRootFilesystem: true privileged: false diff --git a/charts/t8s-cluster/templates/workload-cluster/pre-install/uninstall-storageclasses.yaml b/charts/t8s-cluster/templates/workload-cluster/pre-install/uninstall-storageclasses.yaml index dda737a604..a394e5ed2f 100644 --- a/charts/t8s-cluster/templates/workload-cluster/pre-install/uninstall-storageclasses.yaml +++ b/charts/t8s-cluster/templates/workload-cluster/pre-install/uninstall-storageclasses.yaml @@ -25,7 +25,7 @@ spec: containers: - name: uninstall image: {{ include "common.images.image" (dict "imageRoot" .Values.global.kubectl.image "global" .Values.global) }} - imagePullPolicy: {{ empty .Values.global.kubectl.image.digest | ternary "Always" "IfNotPresent" }} + imagePullPolicy: {{ include "common.images.pullPolicy" .Values.global.kubectl.image }} securityContext: readOnlyRootFilesystem: true privileged: false