File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -58,20 +58,22 @@ roleRef:
58
58
name : {{ include "airflow.fullname" . }}-pod-launcher-role
59
59
{{- end }}
60
60
subjects :
61
+ {{- $schedulerAdded := false }}
61
62
{{- range $executor := $executors }}
62
- {{- if has $executor $schedulerLaunchExecutors }}
63
+ {{- if and (has $executor $schedulerLaunchExecutors) (not $schedulerAdded) }}
64
+ {{- $schedulerAdded = true }}
63
65
- kind : ServiceAccount
64
66
name : {{ include "scheduler.serviceAccountName" $ }}
65
67
namespace : " {{ $.Release.Namespace }}"
66
- {{- break -}}
67
68
{{- end }}
68
69
{{- end }}
70
+ {{- $workerAdded := false }}
69
71
{{- range $executor := $executors }}
70
- {{- if has $executor $workerLaunchExecutors }}
72
+ {{- if and (has $executor $workerLaunchExecutors) (not $workerAdded) }}
73
+ {{- $workerAdded = true }}
71
74
- kind : ServiceAccount
72
75
name : {{ include "worker.serviceAccountName" $ }}
73
76
namespace : " {{ $.Release.Namespace }}"
74
- {{- break -}}
75
77
{{- end }}
76
78
{{- end }}
77
79
{{- end }}
You can’t perform that action at this time.
0 commit comments