Skip to content

Commit 6fe4267

Browse files
authored
check if K8sAuthz is enabled before mounting the corresponding secret (#251)
1 parent 141bcb3 commit 6fe4267

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/package/helm/queryhandler/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ spec:
7070
envFrom:
7171
- secretRef:
7272
name: {{ .Values.messageBus.configSecret | default (printf "%s-%s" (include "queryhandler.fullname" .) "bus") }}
73+
{{- if .Values.k8sAuthZ.enabled }}
7374
- secretRef:
7475
name: {{ .Values.k8sAuthZ.existingSecret | default (printf "%s-%s" (include "queryhandler.fullname" .) "k8sauthz") }}
76+
{{- end }}
7577
args:
7678
- /app
7779
- server

0 commit comments

Comments
 (0)