From 78da5f804d33cd3beaff102ad8c0144a441dd67e Mon Sep 17 00:00:00 2001 From: rafalw82 <150019998+rafalw82@users.noreply.github.com> Date: Mon, 8 Apr 2024 10:00:13 +0200 Subject: [PATCH] [ISSUE-223] Pull secret element misplaced in pre upgrade CRD template Signed-off-by: rafalw82 --- .../templates/pre-upgrade-crds.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/csi-baremetal-operator/templates/pre-upgrade-crds.yaml b/charts/csi-baremetal-operator/templates/pre-upgrade-crds.yaml index 941bcefd..d14e07d2 100644 --- a/charts/csi-baremetal-operator/templates/pre-upgrade-crds.yaml +++ b/charts/csi-baremetal-operator/templates/pre-upgrade-crds.yaml @@ -116,14 +116,14 @@ spec: runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }} runAsUser: {{ .Values.securityContext.runAsUser }} {{- end }} + {{- if .Values.global.registrySecret }} + imagePullSecrets: + - name: {{ .Values.global.registrySecret }} + {{- end }} containers: - name: "{{.Release.Namespace}}-{{.Release.Name}}-csi-baremetal-pre-crds-job" image: {{ if .Values.global.registry }}{{ .Values.global.registry }}/{{ end }}{{ .Values.preUpgradeCRDsHooks.image.name }}:{{ default .Values.image.tag .Values.preUpgradeCRDsHooks.image.tag }} imagePullPolicy: {{ default .Values.image.pullPolicy .Values.preUpgradeCRDsHooks.image.pullPolicy }} - {{- if .Values.global.registrySecret }} - imagePullSecrets: - - name: {{ .Values.global.registrySecret }} - {{- end }} resources: limits: cpu: {{ .Values.operator.resources.limits.cpu }}