Skip to content

Commit

Permalink
Add permissions for controller leader election.
Browse files Browse the repository at this point in the history
The v0.8.0 version of the controller-runtime uses both config maps and
leases to perform leader election. These permissions seem to be in the
individual controller repos, but not here. For example
https://github.com/fluxcd/kustomize-controller/blob/2d38de8779b68bde3366489a0b7657488c747fdb/config/rbac/leader_election_role.yaml#L33-L44
  • Loading branch information
nairb774 committed Jan 25, 2021
1 parent eb86505 commit fe4a0b5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manifests/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ rules:
verbs:
- create
- patch
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down

0 comments on commit fe4a0b5

Please sign in to comment.