From 3d4268caf76d5a2373006235dfe4275513ae14ab Mon Sep 17 00:00:00 2001 From: Huw Ayling-Miller Date: Fri, 29 Mar 2024 16:11:16 +0000 Subject: [PATCH] Fix breakage from #108 - password.db is needed when passwordAuthSecret is set --- charts/trino/templates/deployment-coordinator.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 1574a399..35d233c9 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -64,7 +64,7 @@ spec: configMap: name: trino-resource-groups-volume-coordinator {{- end }} - {{- if or .Values.auth.passwordAuth .Values.auth.groups }} + {{- if or .Values.auth.passwordAuth .Values.auth.passwordAuthSecret .Values.auth.groups }} - name: file-authentication-volume secret: {{- if and .Values.auth .Values.auth.passwordAuthSecret }} @@ -73,7 +73,7 @@ spec: secretName: trino-file-authentication {{- end }} items: - {{- if .Values.auth.passwordAuth }} + {{- if or .Values.auth.passwordAuth .Values.auth.passwordAuthSecret }} - key: password.db path: password.db {{- end }} @@ -132,7 +132,7 @@ spec: - name: {{ .name }} mountPath: {{ .path }} {{- end }} - {{- if or .Values.auth.passwordAuth .Values.auth.groups }} + {{- if or .Values.auth.passwordAuth .Values.auth.passwordAuthSecret .Values.auth.groups }} - mountPath: {{ .Values.server.config.path }}/auth name: file-authentication-volume {{- end }}