From e37f9c71dd964c86f9ac505198602de25311519e Mon Sep 17 00:00:00 2001 From: Ryan D Date: Thu, 23 Nov 2023 14:50:25 +1100 Subject: [PATCH] Only create secret if auth.passwordAuth is set --- charts/trino/templates/secret.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/trino/templates/secret.yaml b/charts/trino/templates/secret.yaml index 4c072f8c..95064798 100644 --- a/charts/trino/templates/secret.yaml +++ b/charts/trino/templates/secret.yaml @@ -1,4 +1,5 @@ {{- if eq .Values.server.config.authenticationType "PASSWORD" }} +{{- if .Values.auth.passwordAuth -}} apiVersion: v1 kind: Secret metadata: @@ -11,3 +12,4 @@ data: group.db: {{ .Values.auth.groups | b64enc }} {{- end }} {{- end }} +{{- end }}