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