diff --git a/config/core/200-roles/clusterrole.yaml b/config/core/200-roles/clusterrole.yaml index 5ab0e53829ff..fe87f97c5f9b 100644 --- a/config/core/200-roles/clusterrole.yaml +++ b/config/core/200-roles/clusterrole.yaml @@ -27,6 +27,9 @@ rules: - apiGroups: [""] resources: ["endpoints/restricted"] # Permission for RestrictedEndpointsAdmission verbs: ["create"] + - apiGroups: ["discovery.k8s.io"] + resources: ["endpointslices/restricted"] # Permission for RestrictedEndpointsAdmission + verbs: ["create"] - apiGroups: [""] resources: ["namespaces/finalizers"] # finalizers are needed for the owner reference of the webhook verbs: ["update"]