From dd53cc56c32505d35af05486cedeee85c3e809ae Mon Sep 17 00:00:00 2001 From: Maciej PIetrzykowski Date: Wed, 4 Dec 2024 09:44:43 +0100 Subject: [PATCH] add database secret create flag --- hive-metastore/templates/secret.yaml | 2 ++ hive-metastore/values.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/hive-metastore/templates/secret.yaml b/hive-metastore/templates/secret.yaml index 38daaac..cc4d3df 100644 --- a/hive-metastore/templates/secret.yaml +++ b/hive-metastore/templates/secret.yaml @@ -1,3 +1,4 @@ +{{- if .Values.databaseSecret.create -}} apiVersion: v1 kind: Secret metadata: @@ -5,3 +6,4 @@ metadata: data: password: {{ .Values.postgres.password | b64enc }} username: {{ .Values.postgres.username | b64enc }} +{{- end }} \ No newline at end of file diff --git a/hive-metastore/values.yaml b/hive-metastore/values.yaml index 5db1f05..0bd2f3b 100644 --- a/hive-metastore/values.yaml +++ b/hive-metastore/values.yaml @@ -14,6 +14,9 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +databaseSecret: + create: false + postgres: host: "postgresql" port: 5432