diff --git a/helm/solr-operator/templates/deployment.yaml b/helm/solr-operator/templates/deployment.yaml index 6d601775..87d27b97 100644 --- a/helm/solr-operator/templates/deployment.yaml +++ b/helm/solr-operator/templates/deployment.yaml @@ -39,6 +39,10 @@ spec: spec: securityContext: runAsNonRoot: true + {{- if .Values.global.imagePullSecrets }} + imagePullSecrets: + {{- toYaml .Values.global.imagePullSecrets | nindent 8 }} + {{- end }} serviceAccountName: {{ include "solr-operator.serviceAccountName" . }} {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} diff --git a/helm/solr-operator/values.yaml b/helm/solr-operator/values.yaml index 3aec6f4a..29a61a98 100644 --- a/helm/solr-operator/values.yaml +++ b/helm/solr-operator/values.yaml @@ -19,6 +19,10 @@ replicaCount: 1 +global: + # Lists the secrets you need to use to pull solr-operator and zookeeper-operator images from a private registry. + imagePullSecrets: [] + image: repository: apache/solr-operator tag: v0.5.0-prerelease