diff --git a/pkg/cmd/server/bootstrappolicy/infra_sa_policy.go b/pkg/cmd/server/bootstrappolicy/infra_sa_policy.go index cb67983730b8..a14cf0e0d7ff 100644 --- a/pkg/cmd/server/bootstrappolicy/infra_sa_policy.go +++ b/pkg/cmd/server/bootstrappolicy/infra_sa_policy.go @@ -745,7 +745,11 @@ func init() { Verbs: sets.NewString("list", "watch"), Resources: sets.NewString("replicationcontrollers"), }, - // DisruptionBudgetController.dStore.ListWatch + { + APIGroups: []string{apps.GroupName}, + Verbs: sets.NewString("list", "watch"), + Resources: sets.NewString("statefulsets"), + }, { APIGroups: []string{policy.GroupName}, Verbs: sets.NewString("get", "list", "watch"), diff --git a/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml b/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml index 98957fcee920..798f8b10819f 100644 --- a/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml +++ b/test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml @@ -2811,6 +2811,14 @@ items: verbs: - list - watch + - apiGroups: + - apps + attributeRestrictions: null + resources: + - statefulsets + verbs: + - list + - watch - apiGroups: - policy attributeRestrictions: null