From 6c61ee51b9079bd668243212848efebaee150cf9 Mon Sep 17 00:00:00 2001 From: Rob Scott Date: Tue, 13 Jul 2021 22:13:07 -0700 Subject: [PATCH] Revert granting EndpointSlice write access to edit role This reverts part of the change introduced by #101203. --- .../pkg/auth/authorizer/rbac/bootstrappolicy/policy.go | 2 -- .../rbac/bootstrappolicy/testdata/cluster-roles.yaml | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go index 916cad82b45..009bd4452ff 100644 --- a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go +++ b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go @@ -287,8 +287,6 @@ func ClusterRoles() []rbacv1.ClusterRole { rbacv1helpers.NewRule(Write...).Groups(legacyGroup).Resources("replicationcontrollers", "replicationcontrollers/scale", "serviceaccounts", "services", "services/proxy", "endpoints", "persistentvolumeclaims", "configmaps", "secrets", "events").RuleOrDie(), - rbacv1helpers.NewRule(Write...).Groups(discoveryGroup).Resources("endpointslices").RuleOrDie(), - rbacv1helpers.NewRule(Write...).Groups(appsGroup).Resources( "statefulsets", "statefulsets/scale", "daemonsets", diff --git a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml index 0d5c477306f..501163af0f3 100644 --- a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml +++ b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml @@ -143,16 +143,6 @@ items: - deletecollection - patch - update - - apiGroups: - - discovery.k8s.io - resources: - - endpointslices - verbs: - - create - - delete - - deletecollection - - patch - - update - apiGroups: - apps resources: