Skip to content

Commit 469db0c

Browse files
authored
Merge pull request #2004 from rabbitmq/add-watch-to-endpointslices
Add watch verb to endpointslices.
2 parents 8c778a6 + 4f1a0df commit 469db0c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config/rbac/role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ rules:
7575
verbs:
7676
- get
7777
- list
78+
- watch
7879
- apiGroups:
7980
- rabbitmq.com
8081
resources:

controllers/rabbitmqcluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ type RabbitmqClusterReconciler struct {
8989
// +kubebuilder:rbac:groups="",resources=serviceaccounts,verbs=get;list;watch;create;update
9090
// +kubebuilder:rbac:groups="",resources=persistentvolumeclaims,verbs=get;list;watch;create;update
9191
// +kubebuilder:rbac:groups="rbac.authorization.k8s.io",resources=roles,verbs=get;list;watch;create;update
92-
// +kubebuilder:rbac:groups="discovery.k8s.io",resources=endpointslices,verbs=get;list
92+
// +kubebuilder:rbac:groups="discovery.k8s.io",resources=endpointslices,verbs=get;list;watch
9393
// +kubebuilder:rbac:groups="",resources=endpoints,verbs=get;watch;list
9494
// +kubebuilder:rbac:groups="rbac.authorization.k8s.io",resources=rolebindings,verbs=get;list;watch;create;update
9595

0 commit comments

Comments
 (0)