From 0070a19a81647be8568f6d84863f050f66accc9f Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Fri, 6 Aug 2021 16:55:56 -0700 Subject: [PATCH] (dev-v2.6-archive) Fix image registry for gatekeeper (partially cherry picked from commit 8f3bf8d6fa404345abebb9a9a81d78b146e46418) --- .../patch/templates/namespace-post-install.yaml.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/rancher-gatekeeper/generated-changes/patch/templates/namespace-post-install.yaml.patch diff --git a/packages/rancher-gatekeeper/generated-changes/patch/templates/namespace-post-install.yaml.patch b/packages/rancher-gatekeeper/generated-changes/patch/templates/namespace-post-install.yaml.patch new file mode 100644 index 000000000..f394b9cfc --- /dev/null +++ b/packages/rancher-gatekeeper/generated-changes/patch/templates/namespace-post-install.yaml.patch @@ -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