Skip to content

Commit e9b461e

Browse files
committed
controllers: add missing permissions for nfc
Signed-off-by: Rewant Soni <[email protected]>
1 parent 068faca commit e9b461e

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

bundle/manifests/ocs-client-operator.clusterserviceversion.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
categories: Storage
88
console.openshift.io/plugins: '["odf-client-console"]'
99
containerImage: quay.io/ocs-dev/ocs-client-operator:latest
10-
createdAt: "2025-09-15T05:45:11Z"
10+
createdAt: "2025-10-07T06:45:45Z"
1111
description: OpenShift Data Foundation client operator enables consumption of
1212
storage services from a remote centralized OpenShift Data Foundation provider
1313
cluster.
@@ -220,6 +220,17 @@ spec:
220220
- list
221221
- update
222222
- watch
223+
- apiGroups:
224+
- csiaddons.openshift.io
225+
resources:
226+
- networkfenceclasses
227+
verbs:
228+
- create
229+
- delete
230+
- get
231+
- list
232+
- update
233+
- watch
223234
- apiGroups:
224235
- groupsnapshot.storage.k8s.io
225236
resources:

config/rbac/role.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,17 @@ rules:
181181
- list
182182
- update
183183
- watch
184+
- apiGroups:
185+
- csiaddons.openshift.io
186+
resources:
187+
- networkfenceclasses
188+
verbs:
189+
- create
190+
- delete
191+
- get
192+
- list
193+
- update
194+
- watch
184195
- apiGroups:
185196
- groupsnapshot.storage.k8s.io
186197
resources:

internal/controller/storageclient_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ func (r *StorageClientReconciler) SetupWithManager(mgr ctrl.Manager) error {
236236
//+kubebuilder:rbac:groups=csi.ceph.io,resources=clientprofiles,verbs=get;list;update;create;watch;delete
237237
//+kubebuilder:rbac:groups=replication.storage.openshift.io,resources=volumereplicationclasses,verbs=get;list;watch;create;delete;update
238238
//+kubebuilder:rbac:groups=replication.storage.openshift.io,resources=volumegroupreplicationclasses,verbs=get;list;watch;create;delete;update
239+
//+kubebuilder:rbac:groups=csiaddons.openshift.io,resources=networkfenceclasses,verbs=get;list;watch;create;delete;update
239240
//+kubebuilder:rbac:groups=storage.k8s.io,resources=storageclasses,verbs=get;list;watch;create;delete;update
240241
//+kubebuilder:rbac:groups=core,resources=persistentvolumes,verbs=get;list;watch
241242
//+kubebuilder:rbac:groups=snapshot.storage.k8s.io,resources=volumesnapshotclasses,verbs=get;list;watch;create;delete;update

0 commit comments

Comments
 (0)