[stable/mongodb] Use .Values.existingSecret for standalone deployments (#7839)

* Use .Values.existingSecret for standalone deployments

Signed-off-by: Rich Adams <richard.adams@intelight-its.com>

* Bumping chart version

Signed-off-by: Rich Adams <richard.adams@intelight-its.com>
This commit is contained in:
Rich Adams
2018-09-19 20:34:31 -07:00
committed by k8s-ci-robot
parent ceb14f1ffb
commit fffb437714
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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:
@@ -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