diff --git a/deploy/helm/charts/templates/cleanup-webhook.yaml b/deploy/helm/charts/templates/cleanup-webhook.yaml index b43dd268..27ab57b1 100644 --- a/deploy/helm/charts/templates/cleanup-webhook.yaml +++ b/deploy/helm/charts/templates/cleanup-webhook.yaml @@ -26,7 +26,11 @@ spec: - name: kubectl {{- /* bitnami maintains an image for all k8s versions */}} {{- /* see: https://hub.docker.com/r/bitnami/kubectl */}} + {{- if .Values.cleanup.image.tag }} + image: "{{ .Values.cleanup.image.registry }}{{ .Values.cleanup.image.repository }}:{{ .Values.cleanup.image.tag }}" + {{- else }} image: "{{ .Values.cleanup.image.registry }}{{ .Values.cleanup.image.repository }}:{{ .Capabilities.KubeVersion.Major }}.{{ $kubeMinor }}" + {{- end }} command: - /bin/sh - -c diff --git a/deploy/helm/charts/values.yaml b/deploy/helm/charts/values.yaml index 52b17f14..a2f3ad38 100644 --- a/deploy/helm/charts/values.yaml +++ b/deploy/helm/charts/values.yaml @@ -245,3 +245,4 @@ cleanup: # For example : quay.io/ is a correct value here and quay.io is incorrect registry: repository: bitnami/kubectl + tag: