Skip to content

Commit 22d75f6

Browse files
Add missing RBAC for oauth-proxy ClusterRoleBinding
1 parent 2f100af commit 22d75f6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

config/rbac/role.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ rules:
5656
- get
5757
- patch
5858
- update
59+
- apiGroups:
60+
- rbac.authorization.k8s.io
61+
resources:
62+
- clusterrolebindings
63+
verbs:
64+
- delete
65+
- get
66+
- patch
5967
- apiGroups:
6068
- route.openshift.io
6169
resources:

pkg/controllers/raycluster_controller.go

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ var (
7373
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;create;patch;delete;get
7474
// +kubebuilder:rbac:groups=core,resources=services,verbs=patch;delete;get
7575
// +kubebuilder:rbac:groups=core,resources=serviceaccounts,verbs=patch;delete;get
76+
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterrolebindings,verbs=patch;delete;get
7677

7778
// Reconcile is part of the main kubernetes reconciliation loop which aims to
7879
// move the current state of the cluster closer to the desired state.

0 commit comments

Comments
 (0)