Skip to content

Commit 2f1c9fd

Browse files
committedJan 5, 2021
Update leader election role to leases.coordination.k8s.io
- controller runtime 0.7 has changed leaderlock from ConfigMap to ConfigMapsLeasesResourceLock
1 parent 75e85ab commit 2f1c9fd

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed
 

Diff for: ‎config/rbac/leader_election_role.yaml

+2-10
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ metadata:
1818
app.kubernetes.io/part-of: rabbitmq
1919
rules:
2020
- apiGroups:
21-
- ""
21+
- coordination.k8s.io
2222
resources:
23-
- configmaps
23+
- leases
2424
verbs:
2525
- get
2626
- list
@@ -29,14 +29,6 @@ rules:
2929
- update
3030
- patch
3131
- delete
32-
- apiGroups:
33-
- ""
34-
resources:
35-
- configmaps/status
36-
verbs:
37-
- get
38-
- update
39-
- patch
4032
- apiGroups:
4133
- ""
4234
resources:

0 commit comments

Comments
 (0)
Please sign in to comment.