Skip to content

Commit

Permalink
This commit adds leases.coordination.k8s.io to the leader-election-role
Browse files Browse the repository at this point in the history
Role under the same rule as configmaps. These permissions are required
by default by controller-runtime's leader election, which uses
configmapsleases as the default election type.

go/v3-alpha: add leases.coordination.k8s.io to leader election RBAC
  • Loading branch information
estroz committed Nov 10, 2020
1 parent 7db6812 commit f38bf3a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ metadata:
rules:
- apiGroups:
- ""
- coordination.k8s.io
resources:
- configmaps
- leases
verbs:
- get
- list
Expand Down

0 comments on commit f38bf3a

Please sign in to comment.