(dev-v2.6-archive) Fix image registry for gatekeeper

(partially cherry picked from commit 8f3bf8d6fa)
pull/1680/head
Colleen Murphy 2021-08-06 16:55:56 -07:00 committed by Arvind Iyengar
parent e6247efd1d
commit 0070a19a81
No known key found for this signature in database
GPG Key ID: A8DD9BFD6C811498
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- charts-original/templates/namespace-post-install.yaml
+++ charts/templates/namespace-post-install.yaml
@@ -30,7 +30,7 @@
kubernetes.io/os: linux
containers:
- name: kubectl-label
- image: "{{ .Values.postInstall.labelNamespace.image.repository }}:{{ .Values.postInstall.labelNamespace.image.tag }}"
+ image: '{{ template "system_default_registry" . }}{{ .Values.postInstall.labelNamespace.image.repository }}:{{ .Values.postInstall.labelNamespace.image.tag }}'
imagePullPolicy: {{ .Values.postInstall.labelNamespace.image.pullPolicy }}
command:
- kubectl