Skip to content

Commit

Permalink
Only create secret if auth.passwordAuth is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Djurovich committed Dec 9, 2022
1 parent 974d0df commit a53a626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/trino/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if eq .Values.server.config.authenticationType "PASSWORD" }}
{{- if .Values.auth.passwordAuth -}}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -7,4 +8,5 @@ metadata:
{{- include "trino.labels" . | nindent 4 }}
data:
password.db: {{ .Values.auth.passwordAuth | b64enc }}
{{- end -}}
{{- end }}

0 comments on commit a53a626

Please sign in to comment.