Skip to content

Commit 2e4e47c

Browse files
liggittmfojtik
authored andcommitted
Add stateful sets permissions to disruption controller
1 parent d0d613e commit 2e4e47c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

pkg/cmd/server/bootstrappolicy/infra_sa_policy.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,11 @@ func init() {
745745
Verbs: sets.NewString("list", "watch"),
746746
Resources: sets.NewString("replicationcontrollers"),
747747
},
748-
// DisruptionBudgetController.dStore.ListWatch
748+
{
749+
APIGroups: []string{apps.GroupName},
750+
Verbs: sets.NewString("list", "watch"),
751+
Resources: sets.NewString("statefulsets"),
752+
},
749753
{
750754
APIGroups: []string{policy.GroupName},
751755
Verbs: sets.NewString("get", "list", "watch"),

test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -2811,6 +2811,14 @@ items:
28112811
verbs:
28122812
- list
28132813
- watch
2814+
- apiGroups:
2815+
- apps
2816+
attributeRestrictions: null
2817+
resources:
2818+
- statefulsets
2819+
verbs:
2820+
- list
2821+
- watch
28142822
- apiGroups:
28152823
- policy
28162824
attributeRestrictions: null

0 commit comments

Comments
 (0)