Skip to content
Snippets Groups Projects
Commit a18f84c2 authored by Brian Atkinson's avatar Brian Atkinson
Browse files

Add permissions for controller leader election.

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



Signed-off-by: default avatarBrian Atkinson <brian@atkinson.mn>
parent eb865053
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,18 @@ rules: ...@@ -28,6 +28,18 @@ rules:
verbs: verbs:
- create - create
- patch - patch
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: RoleBinding
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment