From a14d34e94695664bc3b3a6e2df0a96ac587d0aad Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Wed, 23 Oct 2024 17:55:00 +0100 Subject: [PATCH] [FEATURE] - Provider Service Account Allowing the administrator to use the service account in the Provider regardless of the credentials type --- pkg/assets/job.yaml.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/assets/job.yaml.tpl b/pkg/assets/job.yaml.tpl index 08284495a..a068856c6 100644 --- a/pkg/assets/job.yaml.tpl +++ b/pkg/assets/job.yaml.tpl @@ -27,7 +27,7 @@ spec: spec: # https://github.com/kubernetes/kubernetes/issues/74848 restartPolicy: Never - {{- if eq .Provider.Source "injected" }} + {{- if .Provider.ServiceAccount }} serviceAccountName: {{ .Provider.ServiceAccount }} {{- else }} serviceAccountName: {{ .ServiceAccount }}