File tree 2 files changed +17
-8
lines changed
charts/gatekeeper-artifacts/templates
2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,12 @@ Create the name of the service account to use
60
60
61
61
{ {- define " gatekeeper-artifacts.namespaces" -} }
62
62
{ {- if gt (len .teamIds) 0 } }
63
- { {- if .excludedNamespaces } }
64
63
excludedNamespaces:
65
- { {- else } }
66
- namespaces:
67
- { {- end } }
68
64
{ {- range $teamId := (.teamIds | sortAlpha) } }
69
65
- team-{ { $teamId } }
70
66
{ {- end } }
71
- - argocd
72
67
{ {- end -} }
68
+ - argocd
73
69
{ {- end -} }
74
70
75
71
{ {- define " gatekeeper-artifacts.nodeselector-terms" -} }
Original file line number Diff line number Diff line change 28
28
kinds :
29
29
- apiGroups : [batch]
30
30
kinds : [CronJob]
31
- {{- include "gatekeeper-artifacts.namespaces" (dict "teamIds" $v.teamIds "excludedNamespaces" true) | nindent 4 }}
31
+ excludedNamespaces :
32
+ {{- range $teamId := ($v.teamIds | sortAlpha) }}
33
+ - team-{{ $teamId }}
34
+ {{- end }}
35
+ - argocd
32
36
location : spec.jobTemplate.spec.affinity.nodeAffinity
33
37
parameters :
34
38
assign :
64
68
kinds : [Job]
65
69
- apiGroups : [serving.knative.dev]
66
70
kinds : [Service]
67
- {{- include "gatekeeper-artifacts.namespaces" (dict "teamIds" $v.teamIds "excludedNamespaces" true) | nindent 4 }}
71
+ excludedNamespaces :
72
+ {{- range $teamId := ($v.teamIds | sortAlpha) }}
73
+ - team-{{ $teamId }}
74
+ {{- end }}
75
+ - argocd
68
76
location : spec.template.spec.affinity.nodeAffinity
69
77
parameters :
70
78
assign :
86
94
kinds :
87
95
- apiGroups : ["*"]
88
96
kinds : [Pod]
89
- {{- include "gatekeeper-artifacts.namespaces" (dict "teamIds" $v.teamIds) | nindent 4 }}
97
+ {{- if gt (len $v.teamIds) 0 }}
98
+ namespaces :
99
+ {{- range $teamId := ($v.teamIds | sortAlpha) }}
100
+ - team-{{ $teamId }}
101
+ {{- end }}
102
+ {{- end }}
90
103
location : spec.affinity.nodeAffinity
91
104
parameters :
92
105
assign :
You can’t perform that action at this time.
0 commit comments