Skip to content

Commit

Permalink
fix: allow disabling custom service accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Nov 13, 2024
1 parent e0f7e01 commit edc78bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ spec:
{{- end }}
spec:
{{- if $.Values.rbac.enabled }}
{{- if $.Values.rbac.serviceAccount.enabled }}
{{- if $.Values.rbac.serviceAccount.name }}
serviceAccountName: {{ $.Values.rbac.serviceAccount.name }}
{{- else }}
{{- else }}
serviceAccountName: {{ template "application.name" $ }}
{{- end }}
{{- end }}
{{- end }}
containers:
- name: {{ $name }}
{{- $image := required (print "Undefined image repo for container '" $name "'") $job.image.repository }}
Expand Down

0 comments on commit edc78bf

Please sign in to comment.