Commit 3d8f2ed 1 parent e3d80e5 commit 3d8f2ed Copy full SHA for 3d8f2ed
File tree 4 files changed +53
-2
lines changed
kubewarden-controller/templates
4 files changed +53
-2
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,17 @@ rules:
92
92
- get
93
93
- list
94
94
- watch
95
+ - apiGroups :
96
+ - policy
97
+ resources :
98
+ - poddisruptionbudgets
99
+ verbs :
100
+ - create
101
+ - delete
102
+ - get
103
+ - list
104
+ - update
105
+ - watch
95
106
---
96
107
apiVersion : rbac.authorization.k8s.io/v1
97
108
kind : ClusterRole
Original file line number Diff line number Diff line change 14
14
image : {{ template "system_default_registry" . }}{{ .Values.policyServer.image.repository }}:{{ .Values.policyServer.image.tag }}
15
15
serviceAccountName : {{ .Values.policyServer.serviceAccountName }}
16
16
replicas : {{ .Values.policyServer.replicaCount | default 1 }}
17
+ {{- if .Values.policyServer.minAvailable }}
18
+ minAvailable : {{ .Values.policyServer.minAvailable }}
19
+ {{- end }}
20
+ {{- if .Values.policyServer.maxUnavailable }}
21
+ maxUnavailable : {{ .Values.policyServer.maxUnavailable }}
17
22
{{- if .Values.policyServer.affinity }}
18
23
affinity : {{ .Values.policyServer.affinity | toYaml | nindent 4 }}
19
24
{{- end }}
55
60
securityContexts : {{ toYaml .Values.policyServer.securityContexts | nindent 4 }}
56
61
{{- end }}
57
62
{{- end }}
58
-
59
-
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " http://json-schema.org/schema#" ,
3
+ "type" : " object" ,
4
+ "properties" : {
5
+ "policyServer" : {
6
+ "type" : " object" ,
7
+ "properties" : {
8
+ "maxUnavailable" : {
9
+ "type" : " string"
10
+ },
11
+ "minAvailable" : {
12
+ "type" : " string"
13
+ }
14
+ },
15
+ "allOf" : [
16
+ {
17
+ "not" : {
18
+ "properties" : {
19
+ "minAvailable" : {
20
+ "type" : " string" ,
21
+ "minLength" : 1
22
+ },
23
+ "maxUnavailable" : {
24
+ "type" : " string" ,
25
+ "minLength" : 1
26
+ }
27
+ }
28
+ }
29
+ }
30
+ ],
31
+ "additionalProperties" : true
32
+ }
33
+ },
34
+ "additionalProperties" : true
35
+ }
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ additionalAnnotations: {}
57
57
# Policy Server settings
58
58
policyServer :
59
59
replicaCount : 1
60
+ minAvailable : " "
61
+ maxUnavailable : " "
60
62
image :
61
63
# The registry is defined in the global.cattle.systemDefaultRegistry value
62
64
repository : " kubewarden/policy-server"
You can’t perform that action at this time.
0 commit comments