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