Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Commit fffb437

Browse files
enrichedk8s-ci-robot
authored andcommitted
[stable/mongodb] Use .Values.existingSecret for standalone deployments (#7839)
* Use .Values.existingSecret for standalone deployments Signed-off-by: Rich Adams <[email protected]> * Bumping chart version Signed-off-by: Rich Adams <[email protected]>
1 parent ceb14f1 commit fffb437

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stable/mongodb/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: mongodb
2-
version: 4.3.4
2+
version: 4.3.5
33
appVersion: 4.0.2
44
description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications.
55
keywords:

stable/mongodb/templates/deployment-standalone.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ spec:
5555
- name: MONGODB_ROOT_PASSWORD
5656
valueFrom:
5757
secretKeyRef:
58-
name: {{ template "mongodb.fullname" . }}
58+
name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }}
5959
key: mongodb-root-password
6060
{{- end }}
6161
- name: MONGODB_USERNAME
@@ -64,7 +64,7 @@ spec:
6464
- name: MONGODB_PASSWORD
6565
valueFrom:
6666
secretKeyRef:
67-
name: {{ template "mongodb.fullname" . }}
67+
name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }}
6868
key: mongodb-password
6969
{{- end }}
7070
- name: MONGODB_DATABASE

0 commit comments

Comments
 (0)