Skip to content

Commit

Permalink
add database secret create flag
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejmacq-dev committed Dec 4, 2024
1 parent 8506d08 commit dd53cc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hive-metastore/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{- if .Values.databaseSecret.create -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-pgauth
data:
password: {{ .Values.postgres.password | b64enc }}
username: {{ .Values.postgres.username | b64enc }}
{{- end }}
3 changes: 3 additions & 0 deletions hive-metastore/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

databaseSecret:
create: false

postgres:
host: "postgresql"
port: 5432
Expand Down

0 comments on commit dd53cc5

Please sign in to comment.