File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
manifests/01-admission-control Expand file tree Collapse file tree 2 files changed +5
-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,6 +252,7 @@ webhooks:
252
252
apiGroups : [""]
253
253
apiVersions : ["v1"]
254
254
resources : ["services"]
255
+ {{- if eq .Cluster.ConfigItems.teapot_admission_controller_enable_rolebinding_webhook "true" }}
255
256
- name : rolebinding-admitter.teapot.zalan.do
256
257
clientConfig :
257
258
url : " https://localhost:8085/rolebinding"
@@ -265,3 +266,4 @@ webhooks:
265
266
apiGroups : ["rbac.authorization.k8s.io"]
266
267
apiVersions : ["v1"]
267
268
resources : ["rolebindings", "clusterrolebindings"]
269
+ {{- end }}
You can’t perform that action at this time.
0 commit comments