Skip to content

Commit 22b747a

Browse files
authored
Merge pull request #61 from ArangoGutierrez/devel/role_policy
Add kustomize patch for ClusterRole
2 parents 8ce01e4 + 21bf964 commit 22b747a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

config/rbac/kustomization.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
14
resources:
25
- role.yaml
36
- role_binding.yaml
@@ -11,3 +14,22 @@ resources:
1114
- auth_proxy_role_binding.yaml
1215
- auth_proxy_client_clusterrole.yaml
1316

17+
# needed for nfd-worker
18+
# this patch is needed given that
19+
# +kubebuilder does not allow resourceNames
20+
patchesJSON6902:
21+
- target:
22+
kind: ClusterRole
23+
name: manager-role
24+
patch: |-
25+
- op: add
26+
path: /rules/0
27+
value:
28+
apiGroups:
29+
- policy
30+
resources:
31+
- podsecuritypolicies
32+
verbs:
33+
- use
34+
resourceNames:
35+
- nfd-worker

0 commit comments

Comments
 (0)