diff --git a/build/assets/master/0200_clusterrole.yaml b/build/assets/master/0200_clusterrole.yaml index fde18bcd..bdcab340 100644 --- a/build/assets/master/0200_clusterrole.yaml +++ b/build/assets/master/0200_clusterrole.yaml @@ -13,3 +13,19 @@ rules: - get - patch - update +- apiGroups: + - topology.node.k8s.io + resources: + - noderesourcetopologies + verbs: + - create + - get + - update +- apiGroups: + - nfd.k8s-sigs.io + resources: + - nodefeaturerules + verbs: + - get + - list + - watch \ No newline at end of file diff --git a/config/rbac/kustomization.yaml b/config/rbac/kustomization.yaml index 8ab0a468..1805a2e1 100644 --- a/config/rbac/kustomization.yaml +++ b/config/rbac/kustomization.yaml @@ -33,3 +33,25 @@ patchesJSON6902: - use resourceNames: - nfd-worker + - op: add + path: /rules/1 + value: + apiGroups: + - nfd.k8s-sigs.io + resources: + - nodefeaturerules + verbs: + - get + - list + - watch + - op: add + path: /rules/2 + value: + apiGroups: + - topology.node.k8s.io + resources: + - noderesourcetopologies + verbs: + - create + - get + - update \ No newline at end of file