Skip to content

Commit

Permalink
[stable/mongodb] Use .Values.existingSecret for standalone deployments (
Browse files Browse the repository at this point in the history
helm#7839)

* Use .Values.existingSecret for standalone deployments

Signed-off-by: Rich Adams <[email protected]>

* Bumping chart version

Signed-off-by: Rich Adams <[email protected]>
  • Loading branch information
enriched authored and wgiddens committed Jan 18, 2019
1 parent 3e559ae commit a71070a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/mongodb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions stable/mongodb/templates/deployment-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a71070a

Please sign in to comment.