Skip to content

Commit

Permalink
Add lease RBAC permissions for globalnet
Browse files Browse the repository at this point in the history
The globalnet controller will utilize leader election and thus needs
permissions for lease resources.

Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis authored and skitt committed Oct 6, 2023
1 parent 3d04a91 commit d5bc46c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/rbac/submariner-globalnet/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,14 @@ rules:
- '*'
verbs:
- '*'
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- delete
11 changes: 11 additions & 0 deletions pkg/embeddedyamls/yamls.go
Original file line number Diff line number Diff line change
Expand Up @@ -3165,6 +3165,17 @@ rules:
- '*'
verbs:
- '*'
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- delete
`
Config_rbac_submariner_globalnet_role_binding_yaml = `---
kind: RoleBinding
Expand Down

0 comments on commit d5bc46c

Please sign in to comment.