From c4e157c06017bbd47ea40172881bf1cf1db31941 Mon Sep 17 00:00:00 2001 From: Daniel Arteaga Date: Tue, 27 Oct 2020 08:45:58 +0100 Subject: [PATCH] [bitnami/mongodb-sharded] fix: do not create secret when existingSecret (#4084) Signed-off-by: darteaga --- bitnami/mongodb-sharded/Chart.yaml | 2 +- bitnami/mongodb-sharded/templates/secrets.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bitnami/mongodb-sharded/Chart.yaml b/bitnami/mongodb-sharded/Chart.yaml index f4d42bff8..fcd39d395 100644 --- a/bitnami/mongodb-sharded/Chart.yaml +++ b/bitnami/mongodb-sharded/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mongodb-sharded -version: 2.1.4 +version: 2.1.5 appVersion: 4.4.1 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. Sharded topology. keywords: diff --git a/bitnami/mongodb-sharded/templates/secrets.yaml b/bitnami/mongodb-sharded/templates/secrets.yaml index 3d5204801..c4647ec4a 100644 --- a/bitnami/mongodb-sharded/templates/secrets.yaml +++ b/bitnami/mongodb-sharded/templates/secrets.yaml @@ -1,3 +1,4 @@ +{{- if not .Values.existingSecret }} apiVersion: v1 kind: Secret metadata: @@ -26,3 +27,4 @@ data: {{- else }} mongodb-replica-set-key: {{ randAlphaNum 10 | b64enc | quote }} {{- end }} +{{- end }}