From eba0202e88927d9676a282bc46306023f937af6d Mon Sep 17 00:00:00 2001 From: Pim Jeursen Date: Tue, 18 Oct 2022 11:48:59 +0200 Subject: [PATCH] Fix regcred --- charts/mattermost-operator/Chart.yaml | 2 +- .../templates/mattermost-operator/deployment.yaml | 6 +++--- charts/mattermost-operator/values.yaml | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/charts/mattermost-operator/Chart.yaml b/charts/mattermost-operator/Chart.yaml index a1e64634..426ac301 100644 --- a/charts/mattermost-operator/Chart.yaml +++ b/charts/mattermost-operator/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: mattermost-operator description: A Helm chart for Mattermost Operator type: application -version: 0.3.2 +version: 0.3.3 appVersion: 1.18.0 keywords: - operator diff --git a/charts/mattermost-operator/templates/mattermost-operator/deployment.yaml b/charts/mattermost-operator/templates/mattermost-operator/deployment.yaml index 01105730..7747f2c5 100644 --- a/charts/mattermost-operator/templates/mattermost-operator/deployment.yaml +++ b/charts/mattermost-operator/templates/mattermost-operator/deployment.yaml @@ -42,8 +42,8 @@ spec: imagePullPolicy: "{{ .Values.mattermostOperator.image.pullPolicy }}" name: {{ template "mattermost-operator.name" . }} serviceAccountName: {{ template "mattermost-operator.name" . }} - {{- if .Values.mattermostOperator.privateRegistry.enabled }} + {{- with .Values.imagePullSecrets }} imagePullSecrets: - - name: {{ .Values.mattermostOperator.privateRegistry.imagePullSecret}} - {{- end}} + {{- toYaml . | nindent 6 }} + {{- end }} {{- end }} diff --git a/charts/mattermost-operator/values.yaml b/charts/mattermost-operator/values.yaml index efa6e07b..90b36954 100644 --- a/charts/mattermost-operator/values.yaml +++ b/charts/mattermost-operator/values.yaml @@ -53,9 +53,7 @@ mattermostOperator: ## Specify image pull secret for private repository ## - privateRegistry: - enabled: false - imagePullSecret: +imagePullSecrets: [] ### IMPORTANT: Below operators should be deployed separately in production environments. ### minioOperator: