From ef42736e2366f936bd3a27b53bc6abdd3a595a3b Mon Sep 17 00:00:00 2001 From: thr Date: Fri, 3 Nov 2023 12:12:35 +0100 Subject: [PATCH] adapt imagePullSecrets to values.yaml --- microservicesruntime/helm/templates/job.yaml | 4 ++-- microservicesruntime/helm/templates/nginx-deployment.yaml | 2 +- mywebmethodsserver/helm/templates/statefulset.yaml | 2 +- universalmessaging/helm/templates/job.yaml | 4 ++-- universalmessaging/helm/templates/statefulset.yaml | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/microservicesruntime/helm/templates/job.yaml b/microservicesruntime/helm/templates/job.yaml index e0a06c1..6c7d660 100644 --- a/microservicesruntime/helm/templates/job.yaml +++ b/microservicesruntime/helm/templates/job.yaml @@ -112,7 +112,7 @@ spec: {{- end }} {{- range $imagePullSecrets }} imagePullSecrets: - - name: {{ . }} +{{- toYaml . | nindent 12 }} {{- end }} schedule: {{ $job.schedule | quote }} successfulJobsHistoryLimit: {{ $job.successfulJobsHistoryLimit }} @@ -193,7 +193,7 @@ spec: {{- end }} {{- range $imagePullSecrets }} imagePullSecrets: - - name: {{ . }} +{{- toYaml . | nindent 8 }} {{- end }} {{ end }} diff --git a/microservicesruntime/helm/templates/nginx-deployment.yaml b/microservicesruntime/helm/templates/nginx-deployment.yaml index c537285..a7f4f47 100644 --- a/microservicesruntime/helm/templates/nginx-deployment.yaml +++ b/microservicesruntime/helm/templates/nginx-deployment.yaml @@ -61,7 +61,7 @@ spec: readOnly: false {{- with .Values.imagePullSecrets }} imagePullSecrets: - - name: {{ . }} + {{- toYaml . | nindent 8 }} {{- end }} volumes: diff --git a/mywebmethodsserver/helm/templates/statefulset.yaml b/mywebmethodsserver/helm/templates/statefulset.yaml index e36c3b9..3e0a22c 100644 --- a/mywebmethodsserver/helm/templates/statefulset.yaml +++ b/mywebmethodsserver/helm/templates/statefulset.yaml @@ -42,7 +42,7 @@ spec: spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: - - name: {{ . }} + {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "common.names.serviceAccountName" . }} securityContext: diff --git a/universalmessaging/helm/templates/job.yaml b/universalmessaging/helm/templates/job.yaml index 15cff01..a693380 100644 --- a/universalmessaging/helm/templates/job.yaml +++ b/universalmessaging/helm/templates/job.yaml @@ -115,7 +115,7 @@ spec: {{- end }} {{- range $imagePullSecrets }} imagePullSecrets: - - name: {{ . }} +{{- toYaml . | nindent 12 }} {{- end }} schedule: {{ $job.schedule | quote }} successfulJobsHistoryLimit: {{ $job.successfulJobsHistoryLimit }} @@ -196,7 +196,7 @@ spec: {{- end }} {{- range $imagePullSecrets }} imagePullSecrets: - - name: {{ . }} +{{- toYaml . | nindent 8 }} {{- end }} {{ end }} diff --git a/universalmessaging/helm/templates/statefulset.yaml b/universalmessaging/helm/templates/statefulset.yaml index 3573029..756c2c2 100644 --- a/universalmessaging/helm/templates/statefulset.yaml +++ b/universalmessaging/helm/templates/statefulset.yaml @@ -40,10 +40,10 @@ spec: labels: {{- include "common.labels.matchLabels" . | nindent 8 }} spec: - {{- range .Values.imagePullSecrets }} + {{- with .Values.imagePullSecrets }} imagePullSecrets: - - name: {{ . }} - {{- end }} + {{- toYaml . | nindent 8 }} + {{- end }} serviceAccountName: {{ .Values.serviceAccountName }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}