File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
manifests/01-admission-control Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -674,6 +674,9 @@ teapot_admission_controller_configmap_deletion_protection_enabled: "true"
674
674
teapot_admission_controller_configmap_deletion_protection_factories_enabled : " true"
675
675
{{end}}
676
676
677
+ # enable the rolebinding admission-controller webhook which validates rolebindings and clusterrolebindings
678
+ teapot_admission_controller_enable_rolebinding_webhook : " true"
679
+
677
680
# Enable and configure Pod Security Policy rules implemented in admission-controller.
678
681
teapot_admission_controller_pod_security_policy_enabled : " true"
679
682
Original file line number Diff line number Diff line change @@ -252,3 +252,18 @@ webhooks:
252
252
apiGroups : [""]
253
253
apiVersions : ["v1"]
254
254
resources : ["services"]
255
+ {{- if eq .Cluster.ConfigItems.teapot_admission_controller_enable_rolebinding_webhook "true" }}
256
+ - name : rolebinding-admitter.teapot.zalan.do
257
+ clientConfig :
258
+ url : " https://localhost:8085/rolebinding"
259
+ caBundle : " {{ .Cluster.ConfigItems.ca_cert_decompressed }}"
260
+ admissionReviewVersions : ["v1beta1"]
261
+ failurePolicy : Fail
262
+ sideEffects : " NoneOnDryRun"
263
+ matchPolicy : Equivalent
264
+ rules :
265
+ - operations : [ "CREATE", "UPDATE" ]
266
+ apiGroups : ["rbac.authorization.k8s.io"]
267
+ apiVersions : ["v1"]
268
+ resources : ["rolebindings", "clusterrolebindings"]
269
+ {{- end }}
You can’t perform that action at this time.
0 commit comments