From 49407c788c7ae9225eb9839cfe7890a8868b6384 Mon Sep 17 00:00:00 2001 From: Jia Date: Fri, 11 Apr 2025 22:23:00 -0500 Subject: [PATCH] fix(deployment.yaml): correct the placement and syntax of the imagePullSecrets for solr operator deployment --- helm/solr-operator/templates/deployment.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/helm/solr-operator/templates/deployment.yaml b/helm/solr-operator/templates/deployment.yaml index e6251240..f43934fd 100644 --- a/helm/solr-operator/templates/deployment.yaml +++ b/helm/solr-operator/templates/deployment.yaml @@ -42,13 +42,14 @@ spec: {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} {{- end }} + {{- if .Values.image.imagePullSecret }} + imagePullSecrets: + - name: {{ .Values.image.imagePullSecret }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.image.imagePullSecret }} - imagePullSecret: {{ .Values.image.imagePullSecret }} - {{- end }} args: {{- if or (index .Values "zookeeper-operator" "install") (index .Values "zookeeper-operator" "use") }} - -zk-operator=true