From 2377d4ae881e5aa6def2c095a92863290666d32c Mon Sep 17 00:00:00 2001 From: gdabisias Date: Tue, 29 Aug 2023 16:20:34 +0200 Subject: [PATCH] Fix init container secret Signed-off-by: gdabisias --- charts/flyte-core/templates/admin/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/flyte-core/templates/admin/deployment.yaml b/charts/flyte-core/templates/admin/deployment.yaml index 81587d19739..d8c08234316 100755 --- a/charts/flyte-core/templates/admin/deployment.yaml +++ b/charts/flyte-core/templates/admin/deployment.yaml @@ -74,6 +74,10 @@ spec: name: admin-secrets - mountPath: /var/run/credentials name: cluster-secrets + {{- if gt (len .Values.configmap.clusters.labelClusterMap) 0 }} + - mountPath: /var/run/credentials + name: cluster-credentials + {{- end }} {{- end }} - name: generate-secrets image: "{{ .Values.flyteadmin.image.repository }}:{{ .Values.flyteadmin.image.tag }}"