Skip to content

Commit

Permalink
chore: Align RBAC rules
Browse files Browse the repository at this point in the history
Align Helm RBAC Role template to the kubebuilder
generated file in `config/rbac/role.yaml`

Signed-off-by: Fred Rolland <frolland@nvidia.com>
  • Loading branch information
rollandf committed Oct 18, 2023
1 parent 82e3b8e commit b4771af
Showing 1 changed file with 63 additions and 32 deletions.
95 changes: 63 additions & 32 deletions deployment/network-operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ rules:
- patch
- update
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- validatingwebhookconfigurations
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apiextensions.k8s.io
resources:
Expand Down Expand Up @@ -141,6 +153,19 @@ rules:
- patch
- update
- watch
- apiGroups:
- cert-manager.io
resources:
- certificates
- issuers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- config.openshift.io
resources:
Expand Down Expand Up @@ -173,13 +198,7 @@ rules:
- apiGroups:
- k8s.cni.cncf.io
resources:
- '*'
verbs:
- '*'
- apiGroups:
- mellanox.com
resources:
- '*'
- network-attachment-definitions
verbs:
- create
- delete
Expand All @@ -200,6 +219,12 @@ rules:
- patch
- update
- watch
- apiGroups:
- mellanox.com
resources:
- hostdevicenetworks/finalizers
verbs:
- update
- apiGroups:
- mellanox.com
resources:
Expand All @@ -220,6 +245,12 @@ rules:
- patch
- update
- watch
- apiGroups:
- mellanox.com
resources:
- ipoibnetworks/finalizers
verbs:
- update
- apiGroups:
- mellanox.com
resources:
Expand All @@ -240,6 +271,12 @@ rules:
- patch
- update
- watch
- apiGroups:
- mellanox.com
resources:
- macvlannetworks/finalizers
verbs:
- update
- apiGroups:
- mellanox.com
resources:
Expand All @@ -248,6 +285,25 @@ rules:
- get
- patch
- update
- apiGroups:
- mellanox.com
resources:
- nicclusterpolicies
- nicclusterpolicies/status
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- mellanox.com
resources:
- nicclusterpolicies/finalizers
verbs:
- update
- apiGroups:
- monitoring.coreos.com
resources:
Expand Down Expand Up @@ -333,28 +389,3 @@ rules:
- patch
- update
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- validatingwebhookconfigurations
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- cert-manager.io
resources:
- certificates
- issuers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch

0 comments on commit b4771af

Please sign in to comment.