Skip to content

Commit 02cf93c

Browse files
csi: update RBACs needed for csi-omap-generator sidecar
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 <m.praveen@ibm.com>
1 parent 589aa43 commit 02cf93c

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

config/csi-rbac/rbd_ctrlplugin_cluster_role.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,9 @@ rules:
6363
- apiGroups: ["groupsnapshot.storage.k8s.io"]
6464
resources: ["volumegroupsnapshotcontents/status"]
6565
verbs: ["update", "patch"]
66+
- apiGroups: ["replication.storage.openshift.io"]
67+
resources: ["volumegroupreplicationcontents"]
68+
verbs: ["get", "list", "watch"]
69+
- apiGroups: ["replication.storage.openshift.io"]
70+
resources: ["volumegroupreplicationclasses"]
71+
verbs: ["get", "list", "watch"]

deploy/all-in-one/install.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15218,6 +15218,22 @@ rules:
1521815218
verbs:
1521915219
- update
1522015220
- patch
15221+
- apiGroups:
15222+
- replication.storage.openshift.io
15223+
resources:
15224+
- volumegroupreplicationcontents
15225+
verbs:
15226+
- get
15227+
- list
15228+
- watch
15229+
- apiGroups:
15230+
- replication.storage.openshift.io
15231+
resources:
15232+
- volumegroupreplicationclasses
15233+
verbs:
15234+
- get
15235+
- list
15236+
- watch
1522115237
---
1522215238
apiVersion: rbac.authorization.k8s.io/v1
1522315239
kind: ClusterRole

deploy/multifile/csi-rbac.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,22 @@ rules:
690690
verbs:
691691
- update
692692
- patch
693+
- apiGroups:
694+
- replication.storage.openshift.io
695+
resources:
696+
- volumegroupreplicationcontents
697+
verbs:
698+
- get
699+
- list
700+
- watch
701+
- apiGroups:
702+
- replication.storage.openshift.io
703+
resources:
704+
- volumegroupreplicationclasses
705+
verbs:
706+
- get
707+
- list
708+
- watch
693709
---
694710
apiVersion: rbac.authorization.k8s.io/v1
695711
kind: ClusterRole

0 commit comments

Comments
 (0)