Skip to content

Commit 2ff668b

Browse files
committed
Change leader election default ID
1 parent a79dd71 commit 2ff668b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/leaderelection/leader_election.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func NewResourceLock(config *rest.Config, recorderProvider recorder.Provider, op
5454

5555
// Default the LeaderElectionID
5656
if options.LeaderElectionID == "" {
57-
options.LeaderElectionID = "controller-runtime"
57+
options.LeaderElectionID = "controller-leader-election-helper"
5858
}
5959

6060
// Default the namespace (if running in cluster)

pkg/manager/manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ var _ = Describe("manger.Manager", func() {
113113
})
114114
Expect(m).ToNot(BeNil())
115115
Expect(err).ToNot(HaveOccurred())
116-
Expect(rl.Describe()).To(Equal("default/controller-runtime"))
116+
Expect(rl.Describe()).To(Equal("default/controller-leader-election-helper"))
117117
})
118118

119119
It("should return an error if namespace not set and not running in cluster", func() {

0 commit comments

Comments
 (0)