Skip to content

Commit

Permalink
csi: update RBACs needed for csi-omap-generator sidecar
Browse files Browse the repository at this point in the history
ceph/ceph-csi/pull/4750 added a new controller that watches for the
VolumeGroupReplicationContent CR and regenerates the OMAP data.
This change needs RBACs for VolumeGroupReplicationContent and
VolumeGroupReplicationClass CR.

This commit updates the same for the `rbd-ctrlplugin-cr`
ClusterRole.

Signed-off-by: Praveen M <[email protected]>
  • Loading branch information
iPraveenParihar committed Jan 29, 2025
1 parent 589aa43 commit 56e92c6
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/csi-rbac/rbd_ctrlplugin_cluster_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,10 @@ rules:
- apiGroups: ["groupsnapshot.storage.k8s.io"]
resources: ["volumegroupsnapshotcontents/status"]
verbs: ["update", "patch"]
- apiGroups: ["replication.storage.openshift.io"]
resources: ["volumegroupreplicationcontents"]
verbs: ["get", "list", "watch"]
- apiGroups: ["replication.storage.openshift.io"]
resources: ["volumegroupreplicationclasses"]
verbs: ["get", "list", "watch"]

16 changes: 16 additions & 0 deletions deploy/all-in-one/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15218,6 +15218,22 @@ rules:
verbs:
- update
- patch
- apiGroups:
- replication.storage.openshift.io
resources:
- volumegroupreplicationcontents
verbs:
- get
- list
- watch
- apiGroups:
- replication.storage.openshift.io
resources:
- volumegroupreplicationclasses
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
16 changes: 16 additions & 0 deletions deploy/multifile/csi-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,22 @@ rules:
verbs:
- update
- patch
- apiGroups:
- replication.storage.openshift.io
resources:
- volumegroupreplicationcontents
verbs:
- get
- list
- watch
- apiGroups:
- replication.storage.openshift.io
resources:
- volumegroupreplicationclasses
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down

0 comments on commit 56e92c6

Please sign in to comment.