diff --git a/helm/solr-operator/Chart.yaml b/helm/solr-operator/Chart.yaml index ca45651d..9bd1f26a 100644 --- a/helm/solr-operator/Chart.yaml +++ b/helm/solr-operator/Chart.yaml @@ -105,6 +105,11 @@ annotations: links: - name: Github PR url: https://github.com/apache/solr-operator/pull/790 + - kind: fixed + description: Correct the placement and syntax of the imagePullSecret in the Solr-Operator Helm chart + links: + - name: Github PR + url: https://github.com/apache/solr-operator/pull/782 artifacthub.io/images: | - name: solr-operator image: apache/solr-operator:v0.10.0-prerelease diff --git a/helm/solr-operator/templates/deployment.yaml b/helm/solr-operator/templates/deployment.yaml index 1c13fae4..fe199651 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