Skip to content

Commit 2a419fc

Browse files
committed
Add permissions for nodefeaturs in GFD's role object
These permissions are required when GFD is configured to use the Node Feature API instead of feature files. Signed-off-by: Christopher Desiniotis <[email protected]>
1 parent 507f23b commit 2a419fc

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

assets/gpu-feature-discovery/0200_role.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ rules:
1212
- use
1313
resourceNames:
1414
- privileged
15+
- apiGroups:
16+
- "nfd.k8s-sigs.io"
17+
resources:
18+
- "nodefeatures"
19+
verbs:
20+
- get
21+
- list
22+
- watch
23+
- create
24+
- update

bundle/manifests/gpu-operator-certified.clusterserviceversion.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,16 @@ spec:
847847
- watch
848848
- update
849849
- delete
850+
- apiGroups:
851+
- "nfd.k8s-sigs.io"
852+
resources:
853+
- "nodefeatures"
854+
verbs:
855+
- get
856+
- list
857+
- watch
858+
- create
859+
- update
850860
deployments:
851861
- name: gpu-operator
852862
spec:

deployments/gpu-operator/templates/role.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,13 @@ rules:
8282
- watch
8383
- update
8484
- delete
85+
- apiGroups:
86+
- "nfd.k8s-sigs.io"
87+
resources:
88+
- "nodefeatures"
89+
verbs:
90+
- get
91+
- list
92+
- watch
93+
- create
94+
- update

0 commit comments

Comments
 (0)