diff --git a/stable/mongodb/Chart.yaml b/stable/mongodb/Chart.yaml index 4035c9fe11..9a2eb78b37 100644 --- a/stable/mongodb/Chart.yaml +++ b/stable/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.8.2 +version: 4.8.3 appVersion: 4.0.3 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/statefulset-primary-rs.yaml b/stable/mongodb/templates/statefulset-primary-rs.yaml index 9eb948e907..74bb2088f1 100644 --- a/stable/mongodb/templates/statefulset-primary-rs.yaml +++ b/stable/mongodb/templates/statefulset-primary-rs.yaml @@ -77,7 +77,7 @@ spec: - name: MONGODB_DATABASE value: {{ .Values.mongodbDatabase | quote }} {{- if .Values.usePassword }} - {{- if .Values.mongodbPassword }} + {{- if or .Values.mongodbPassword .Values.existingSecret }} - name: MONGODB_PASSWORD valueFrom: secretKeyRef: