Skip to content

Commit

Permalink
Update leader election role to leases.coordination.k8s.io
Browse files Browse the repository at this point in the history
- controller runtime 0.7 has changed leaderlock from
ConfigMap to ConfigMapsLeasesResourceLock
  • Loading branch information
ChunyiLyu committed Jan 5, 2021
1 parent 75e85ab commit 2f1c9fd
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions config/rbac/leader_election_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ metadata:
app.kubernetes.io/part-of: rabbitmq
rules:
- apiGroups:
- ""
- coordination.k8s.io
resources:
- configmaps
- leases
verbs:
- get
- list
Expand All @@ -29,14 +29,6 @@ rules:
- update
- patch
- delete
- apiGroups:
- ""
resources:
- configmaps/status
verbs:
- get
- update
- patch
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit 2f1c9fd

Please sign in to comment.