Fix image registry for gatekeeper

pull/1401/head
Colleen Murphy 2021-08-06 16:55:56 -07:00
parent 4ad408e0ca
commit 8f3bf8d6fa
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