From e67c629f4bae12ce12c3db28bbbfbc1852d0ccc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacobo=20Coll=20Morag=C3=B3n?= Date: Wed, 13 Oct 2021 17:55:30 +0100 Subject: [PATCH] Use global.imagePullSecrets at solr-operator helm chart #338 --- helm/solr-operator/templates/deployment.yaml | 4 ++++ helm/solr-operator/values.yaml | 4 ++++ 2 files changed, 8 insertions(+) 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