Skip to content

Commit

Permalink
Add delete permissions to operator
Browse files Browse the repository at this point in the history
...for ServiceAccount, ClusterRole, ClusterRoleBinding for
network plugin syncer cleanup.

Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis authored and skitt committed Aug 23, 2023
1 parent 60159d2 commit 19cce1f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config/rbac/submariner-operator/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ rules:
- secrets
verbs:
- '*'
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- delete
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- clusterrolebindings
verbs:
- delete
- apiGroups:
- apps
resources:
Expand Down
13 changes: 13 additions & 0 deletions pkg/embeddedyamls/yamls.go
Original file line number Diff line number Diff line change
Expand Up @@ -2513,6 +2513,19 @@ rules:
- secrets
verbs:
- '*'
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- delete
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- clusterrolebindings
verbs:
- delete
- apiGroups:
- apps
resources:
Expand Down

0 comments on commit 19cce1f

Please sign in to comment.