The template namespace post upgrade yaml fails when using system default registry (#3958)

pull/3960/head
Diogo Souza 2024-05-23 19:15:09 -03:00 committed by GitHub
parent ba58a40e37
commit cf257178fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 22 additions and 4 deletions

View File

@ -68,7 +68,7 @@ spec:
{{- toYaml .Values.postInstall.securityContext | nindent 12 }}
{{- if .Values.postInstall.labelNamespace.extraNamespaces }}
- name: kubectl-label-extra
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 }}
args:
- label

View File

@ -60,7 +60,7 @@ spec:
{{- toYaml .Values.postUpgrade.securityContext | nindent 12 }}
{{- if .Values.postUpgrade.labelNamespace.extraNamespaces }}
- name: kubectl-label-extra
image: "{{ .Values.postUpgrade.labelNamespace.image.repository }}:{{ .Values.postUpgrade.labelNamespace.image.tag }}"
image: '{{ template "system_default_registry" . }}{{ .Values.postUpgrade.labelNamespace.image.repository }}:{{ .Values.postUpgrade.labelNamespace.image.tag }}'
imagePullPolicy: {{ .Values.postUpgrade.labelNamespace.image.pullPolicy }}
args:
- label

View File

@ -11362,10 +11362,10 @@ entries:
catalog.cattle.io/ui-component: gatekeeper
apiVersion: v2
appVersion: v3.13.0
created: "2024-01-02T15:46:18.054135-03:00"
created: "2024-05-23T17:37:52.929085-03:00"
description: Modifies Open Policy Agent's upstream gatekeeper chart that provides
policy-based control for cloud native environments
digest: 03ac83c2dbba8b3d6ebad07d28f1723021324ea3b71033ba3f5296d1070575ee
digest: e1bf0078a7601c0c4d7bdbdeaf5d79ccbf7ef8e13177e093c406839bb6ef3856
home: https://github.com/open-policy-agent/gatekeeper
icon: https://charts.rancher.io/assets/logos/gatekeeper.svg
keywords:

View File

@ -5,6 +5,15 @@
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 }}
args:
- label
@@ -68,7 +68,7 @@
{{- toYaml .Values.postInstall.securityContext | nindent 12 }}
{{- if .Values.postInstall.labelNamespace.extraNamespaces }}
- name: kubectl-label-extra
- 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 }}
args:

View File

@ -5,6 +5,15 @@
containers:
- name: kubectl-label
- image: "{{ .Values.postUpgrade.labelNamespace.image.repository }}:{{ .Values.postUpgrade.labelNamespace.image.tag }}"
+ image: '{{ template "system_default_registry" . }}{{ .Values.postUpgrade.labelNamespace.image.repository }}:{{ .Values.postUpgrade.labelNamespace.image.tag }}'
imagePullPolicy: {{ .Values.postUpgrade.labelNamespace.image.pullPolicy }}
args:
- label
@@ -60,7 +60,7 @@
{{- toYaml .Values.postUpgrade.securityContext | nindent 12 }}
{{- if .Values.postUpgrade.labelNamespace.extraNamespaces }}
- name: kubectl-label-extra
- image: "{{ .Values.postUpgrade.labelNamespace.image.repository }}:{{ .Values.postUpgrade.labelNamespace.image.tag }}"
+ image: '{{ template "system_default_registry" . }}{{ .Values.postUpgrade.labelNamespace.image.repository }}:{{ .Values.postUpgrade.labelNamespace.image.tag }}'
imagePullPolicy: {{ .Values.postUpgrade.labelNamespace.image.pullPolicy }}
args: