Skip to content

Commit

Permalink
Update cronjob.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Nov 13, 2024
1 parent 7a0e9d8 commit 84cb6e1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions application/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,8 @@ spec:
annotations: {{ toYaml . | nindent 12 }}
{{- end }}
spec:
{{- if $.Values.rbac.enabled }}
{{- if $.Values.rbac.serviceAccount.enabled }}
{{- if $.Values.rbac.serviceAccount.name }}
serviceAccountName: {{ $.Values.rbac.serviceAccount.name }}
{{- else }}
serviceAccountName: {{ template "application.name" $ }}
{{- end }}
{{- end }}
{{- if and $.Values.rbac.enabled $.Values.rbac.serviceAccount.enabled }}
serviceAccountName: {{ default (include "application.name" $) $.Values.rbac.serviceAccount.name }}
{{- end }}
containers:
- name: {{ $name }}
Expand Down

0 comments on commit 84cb6e1

Please sign in to comment.