Skip to content

Commit e6a87ad

Browse files
author
OpenShift Bot
authored
Merge pull request #13420 from wongma7/provisioner-list-events
Merged by openshift-bot
2 parents f6049ac + 308d3b9 commit e6a87ad

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/cmd/server/bootstrappolicy/policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ func GetBootstrapClusterRoles() []authorizationapi.ClusterRole {
841841
authorizationapi.NewRule("get", "list", "watch", "update").Groups(kapiGroup).Resources("persistentvolumeclaims").RuleOrDie(),
842842
authorizationapi.NewRule(read...).Groups(storageGroup).Resources("storageclasses").RuleOrDie(),
843843
// Needed for watching provisioning success and failure events
844-
authorizationapi.NewRule("create", "update", "patch", "watch").Groups(kapiGroup).Resources("events").RuleOrDie(),
844+
authorizationapi.NewRule("create", "update", "patch", "list", "watch").Groups(kapiGroup).Resources("events").RuleOrDie(),
845845
},
846846
},
847847

test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,7 @@ items:
24962496
- events
24972497
verbs:
24982498
- create
2499+
- list
24992500
- patch
25002501
- update
25012502
- watch

0 commit comments

Comments
 (0)