Skip to content

Commit f8a3258

Browse files
committed
chore: spectrumx operator update RBAC
Signed-off-by: Fred Rolland <[email protected]>
1 parent bb9c6ce commit f8a3258

File tree

4 files changed

+39
-6
lines changed

4 files changed

+39
-6
lines changed

config/rbac/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,14 @@ rules:
333333
- get
334334
- patch
335335
- update
336+
- apiGroups:
337+
- sriovnetwork.openshift.io
338+
resources:
339+
- sriovnetworknodepolicies
340+
verbs:
341+
- get
342+
- list
343+
- watch
336344
- apiGroups:
337345
- sriovnetwork.openshift.io
338346
resources:

controllers/nicclusterpolicy_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ type NicClusterPolicyReconciler struct {
108108
// +kubebuilder:rbac:groups=spectrumx.nvidia.com,resources=spectrumxrailpoolconfigs,verbs=get;list;watch;create;update;patch;delete
109109
// +kubebuilder:rbac:groups=spectrumx.nvidia.com,resources=spectrumxrailpoolconfigs/status,verbs=get;update;patch
110110
// +kubebuilder:rbac:groups=spectrumx.nvidia.com,resources=spectrumxrailpoolconfigs/finalizers,verbs=update
111+
// +kubebuilder:rbac:groups=sriovnetwork.openshift.io,resources=sriovnetworknodepolicies,verbs=get;list;watch
111112

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

deployment/network-operator/templates/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,14 @@ rules:
350350
- get
351351
- patch
352352
- update
353+
- apiGroups:
354+
- sriovnetwork.openshift.io
355+
resources:
356+
- sriovnetworknodepolicies
357+
verbs:
358+
- get
359+
- list
360+
- watch
353361
- apiGroups:
354362
- sriovnetwork.openshift.io
355363
resources:

manifests/state-spectrum-x-operator/0020-role.yaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@ rules:
1313
- patch
1414
- update
1515
- apiGroups:
16-
- coordination.k8s.io
16+
- ""
1717
resources:
18-
- leases
18+
- nodes
1919
verbs:
20-
- create
21-
- delete
2220
- get
2321
- list
24-
- patch
25-
- update
2622
- watch
2723
- apiGroups:
2824
- ""
@@ -50,6 +46,18 @@ rules:
5046
- get
5147
- patch
5248
- update
49+
- apiGroups:
50+
- coordination.k8s.io
51+
resources:
52+
- leases
53+
verbs:
54+
- create
55+
- delete
56+
- get
57+
- list
58+
- patch
59+
- update
60+
- watch
5361
- apiGroups:
5462
- spectrumx.nvidia.com
5563
resources:
@@ -76,3 +84,11 @@ rules:
7684
- get
7785
- patch
7886
- update
87+
- apiGroups:
88+
- sriovnetwork.openshift.io
89+
resources:
90+
- sriovnetworknodepolicies
91+
verbs:
92+
- get
93+
- list
94+
- watch

0 commit comments

Comments
 (0)