diff --git a/pkg/cmd/server/bootstrappolicy/policy.go b/pkg/cmd/server/bootstrappolicy/policy.go index d52a2bfef40e..7a3ddcec7509 100644 --- a/pkg/cmd/server/bootstrappolicy/policy.go +++ b/pkg/cmd/server/bootstrappolicy/policy.go @@ -531,7 +531,6 @@ func GetBootstrapClusterRoles() []authorizationapi.ClusterRole { Rules: []authorizationapi.PolicyRule{ authorizationapi.NewRule("list", "watch").Groups(kapiGroup).Resources("endpoints").RuleOrDie(), authorizationapi.NewRule("list", "watch").Groups(kapiGroup).Resources("services").RuleOrDie(), - authorizationapi.NewRule("list", "watch").Groups(kapiGroup).Resources("nodes").RuleOrDie(), authorizationapi.NewRule("list", "watch").Groups(routeGroup).Resources("routes").RuleOrDie(), authorizationapi.NewRule("update").Groups(routeGroup).Resources("routes/status").RuleOrDie(), diff --git a/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml b/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml index c30abd6f66f6..4aa92e0a4867 100644 --- a/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml +++ b/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml @@ -1772,14 +1772,6 @@ items: verbs: - list - watch - - apiGroups: - - "" - attributeRestrictions: null - resources: - - nodes - verbs: - - list - - watch - apiGroups: - "" attributeRestrictions: null