Commit b88ba72 1 parent 05a6207 commit b88ba72 Copy full SHA for b88ba72
File tree 7 files changed +139
-31
lines changed
7 files changed +139
-31
lines changed Original file line number Diff line number Diff line change 35
35
items :
36
36
- key : policy-server-root-ca-pem
37
37
path : " policy-server-root-ca-pem"
38
+ {{- if .Values.global.affinity }}
39
+ affinity : {{ .Values.global.affinity | toYaml | nindent 14 }}
40
+ {{- end }}
41
+ {{- if .Values.global.tolerations }}
42
+ tolerations : {{ .Values.global.tolerations | toYaml | nindent 14 }}
43
+ {{- end }}
44
+ {{- with .Values.nodeSelector }}
45
+ nodeSelector :
46
+ {{- toYaml . | nindent 14 }}
47
+ {{- end }}
38
48
containers :
39
49
- name : audit-scanner
40
50
image : ' {{ template "system_default_registry" . }}{{ .Values.auditScanner.image.repository }}:{{ .Values.auditScanner.image.tag }}'
49
59
securityContext :
50
60
{{- toYaml . | nindent 14 }}
51
61
{{- end }}
52
- {{- with .Values.nodeSelector }}
53
- nodeSelector :
54
- {{- toYaml . | nindent 14 }}
55
- {{- end }}
56
- {{- with .Values.affinity }}
57
- affinity :
58
- {{- toYaml . | nindent 14 }}
59
- {{- end }}
60
- {{- with .Values.tolerations }}
61
- tolerations :
62
- {{- toYaml . | nindent 14 }}
63
- {{- end }}
64
62
{{- if and .Values.resources .Values.resources.auditScanner }}
65
63
resources :
66
64
{{ toYaml .Values.resources.auditScanner | indent 14 }}
Original file line number Diff line number Diff line change 30
30
{{- include "imagePullSecrets" .Values.imagePullSecrets | nindent 8 }}
31
31
{{- end }}
32
32
serviceAccountName : {{ include "kubewarden-controller.serviceAccountName" . }}
33
+ {{- if .Values.global.affinity }}
34
+ affinity : {{ .Values.global.affinity | toYaml | nindent 8 }}
35
+ {{- end }}
36
+ {{- if .Values.global.tolerations }}
37
+ tolerations : {{ .Values.global.tolerations | toYaml | nindent 8 }}
38
+ {{- end }}
39
+ {{- with .Values.nodeSelector }}
40
+ nodeSelector :
41
+ {{- toYaml . | nindent 8 }}
42
+ {{- end }}
33
43
containers :
34
44
- name : manager
35
45
args :
@@ -93,15 +103,3 @@ spec:
93
103
{{ toYaml .Values.podSecurityContext | indent 8 }}
94
104
{{- end }}
95
105
terminationGracePeriodSeconds : 10
96
- {{- with .Values.nodeSelector }}
97
- nodeSelector :
98
- {{- toYaml . | nindent 8 }}
99
- {{- end }}
100
- {{- with .Values.affinity }}
101
- affinity :
102
- {{- toYaml . | nindent 8 }}
103
- {{- end }}
104
- {{- with .Values.tolerations }}
105
- tolerations :
106
- {{- toYaml . | nindent 8 }}
107
- {{- end }}
Original file line number Diff line number Diff line change 3
3
# by more than one chart and they ideally need to match during the
4
4
# installation of the charts consuming this values.
5
5
global :
6
+ # affinity:
7
+ # podAffinity:
8
+ # requiredDuringSchedulingIgnoredDuringExecution:
9
+ # - labelSelector:
10
+ # matchExpressions:
11
+ # - key: security
12
+ # operator: In
13
+ # values:
14
+ # - S1
15
+ # topologyKey: topology.kubernetes.io/zone
16
+ # podAntiAffinity:
17
+ # preferredDuringSchedulingIgnoredDuringExecution:
18
+ # - weight: 100
19
+ # podAffinityTerm:
20
+ # labelSelector:
21
+ # matchExpressions:
22
+ # - key: security
23
+ # operator: In
24
+ # values:
25
+ # - S2
26
+ # topologyKey: topology.kubernetes.io/zone
27
+ # nodeAffinity:
28
+ # requiredDuringSchedulingIgnoredDuringExecution:
29
+ # nodeSelectorTerms:
30
+ # - matchExpressions:
31
+ # - key: kubernetes.io/os
32
+ # operator: In
33
+ # values:
34
+ # - linux
35
+ # preferredDuringSchedulingIgnoredDuringExecution:
36
+ # - weight: 1
37
+ # preference:
38
+ # matchExpressions:
39
+ # - key: label-1
40
+ # operator: In
41
+ # values:
42
+ # - key-1
43
+ # - weight: 50
44
+ # preference:
45
+ # matchExpressions:
46
+ # - key: label-2
47
+ # operator: In
48
+ # values:
49
+ # - key-2
50
+ affinity : {}
51
+ # tolerations:
52
+ # - key: "key1"
53
+ # operator: "Equal"
54
+ # value: "value1"
55
+ # effect: "NoSchedule"
56
+ # - key: "key1"
57
+ # operator: "Equal"
58
+ # value: "value1"
59
+ # effect: "NoExecute"
60
+ tolerations : []
6
61
cattle :
7
62
systemDefaultRegistry : ghcr.io
8
63
skipNamespaces :
@@ -111,8 +166,6 @@ preDeleteJob:
111
166
# kubewarden-controller deployment settings:
112
167
podAnnotations : {}
113
168
nodeSelector : {}
114
- tolerations : []
115
- affinity : {}
116
169
tls :
117
170
# source options:
118
171
# - "cert-manager-self-signed": Scaffold cert-manager integration, and create
Original file line number Diff line number Diff line change @@ -76,4 +76,3 @@ namespaceSelector:
76
76
{ {- printf " %s/" .Values.global.cattle.systemDefaultRegistry -} }
77
77
{ {- end -} }
78
78
{ {- end -} }
79
-
Original file line number Diff line number Diff line change 20
20
{{- if .Values.policyServer.maxUnavailable }}
21
21
maxUnavailable : {{ .Values.policyServer.maxUnavailable }}
22
22
{{- end }}
23
- {{- if .Values.policyServer.affinity }}
24
- affinity : {{ .Values.policyServer.affinity | toYaml | nindent 4 }}
23
+ {{- if .Values.global.affinity }}
24
+ affinity : {{ .Values.global.affinity | toYaml | nindent 4 }}
25
+ {{- end }}
26
+ {{- if .Values.global.tolerations }}
27
+ tolerations : {{ .Values.global.tolerations | toYaml | nindent 4 }}
25
28
{{- end }}
26
29
{{- if .Values.policyServer.limits }}
27
30
limits : {{ .Values.policyServer.limits | toYaml | nindent 4 }}
Original file line number Diff line number Diff line change 3
3
# by more than one chart and they ideally need to match during the
4
4
# installation of the charts consuming this values.
5
5
global :
6
+ # affinity:
7
+ # podAffinity:
8
+ # requiredDuringSchedulingIgnoredDuringExecution:
9
+ # - labelSelector:
10
+ # matchExpressions:
11
+ # - key: security
12
+ # operator: In
13
+ # values:
14
+ # - S1
15
+ # topologyKey: topology.kubernetes.io/zone
16
+ # podAntiAffinity:
17
+ # preferredDuringSchedulingIgnoredDuringExecution:
18
+ # - weight: 100
19
+ # podAffinityTerm:
20
+ # labelSelector:
21
+ # matchExpressions:
22
+ # - key: security
23
+ # operator: In
24
+ # values:
25
+ # - S2
26
+ # topologyKey: topology.kubernetes.io/zone
27
+ # nodeAffinity:
28
+ # requiredDuringSchedulingIgnoredDuringExecution:
29
+ # nodeSelectorTerms:
30
+ # - matchExpressions:
31
+ # - key: kubernetes.io/os
32
+ # operator: In
33
+ # values:
34
+ # - linux
35
+ # preferredDuringSchedulingIgnoredDuringExecution:
36
+ # - weight: 1
37
+ # preference:
38
+ # matchExpressions:
39
+ # - key: label-1
40
+ # operator: In
41
+ # values:
42
+ # - key-1
43
+ # - weight: 50
44
+ # preference:
45
+ # matchExpressions:
46
+ # - key: label-2
47
+ # operator: In
48
+ # values:
49
+ # - key-2
50
+ affinity : {}
51
+ # tolerations:
52
+ # - key: "key1"
53
+ # operator: "Equal"
54
+ # value: "value1"
55
+ # effect: "NoSchedule"
56
+ # - key: "key1"
57
+ # operator: "Equal"
58
+ # value: "value1"
59
+ # effect: "NoExecute"
60
+ tolerations : []
6
61
cattle :
7
62
systemDefaultRegistry : ghcr.io
8
63
skipNamespaces :
@@ -113,8 +168,6 @@ policyServer:
113
168
# certs:
114
169
# - "cert4"
115
170
sourceAuthorities : {}
116
- # affinity for pods of the default PolicyServer
117
- affinity : {}
118
171
# limits and requests, see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
119
172
limits : {}
120
173
requests : {}
Original file line number Diff line number Diff line change 2
2
# by more than one chart and they ideally need to match during the
3
3
# installation of the charts consuming this values.
4
4
global :
5
+ affinity : {}
6
+ tolerations : []
5
7
cattle :
6
8
systemDefaultRegistry : ghcr.io
7
9
skipNamespaces :
@@ -47,3 +49,5 @@ global:
47
49
default :
48
50
name : default
49
51
enabled : true
52
+ affinity : {}
53
+ tolerations : []
You can’t perform that action at this time.
0 commit comments