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 f6d54b9
Show file tree
Hide file tree
Showing 4 changed files with 8 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
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
rules:
- apiGroups:
- ""
- coordination.k8s.io
resources:
- configmaps
- leases
verbs:
- get
- list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
rules:
- apiGroups:
- ""
- coordination.k8s.io
resources:
- configmaps
- leases
verbs:
- get
- list
Expand Down
2 changes: 2 additions & 0 deletions testdata/project-v3/config/rbac/leader_election_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
rules:
- apiGroups:
- ""
- coordination.k8s.io
resources:
- configmaps
- leases
verbs:
- get
- list
Expand Down

0 comments on commit f6d54b9

Please sign in to comment.