From 3350059dd732844ce111268199dc1c4db151d430 Mon Sep 17 00:00:00 2001 From: Rich Adams Date: Wed, 19 Sep 2018 20:34:31 -0700 Subject: [PATCH] [stable/mongodb] Use .Values.existingSecret for standalone deployments (#7839) * Use .Values.existingSecret for standalone deployments Signed-off-by: Rich Adams * Bumping chart version Signed-off-by: Rich Adams Signed-off-by: jenkin-x --- stable/mongodb/Chart.yaml | 2 +- stable/mongodb/templates/deployment-standalone.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/mongodb/Chart.yaml b/stable/mongodb/Chart.yaml index 114152f8a6e2..79df72a23c7c 100644 --- a/stable/mongodb/Chart.yaml +++ b/stable/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.3.4 +version: 4.3.5 appVersion: 4.0.2 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/stable/mongodb/templates/deployment-standalone.yaml b/stable/mongodb/templates/deployment-standalone.yaml index f6674b7903aa..8d600512f3a7 100644 --- a/stable/mongodb/templates/deployment-standalone.yaml +++ b/stable/mongodb/templates/deployment-standalone.yaml @@ -55,7 +55,7 @@ spec: - name: MONGODB_ROOT_PASSWORD valueFrom: secretKeyRef: - name: {{ template "mongodb.fullname" . }} + name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }} key: mongodb-root-password {{- end }} - name: MONGODB_USERNAME @@ -64,7 +64,7 @@ spec: - name: MONGODB_PASSWORD valueFrom: secretKeyRef: - name: {{ template "mongodb.fullname" . }} + name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }} key: mongodb-password {{- end }} - name: MONGODB_DATABASE