File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ limitations under the License.
1717package main
1818
1919import (
20+ "crypto/md5"
2021 "flag"
22+ "fmt"
2123 "os"
2224
2325 // Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
@@ -110,7 +112,7 @@ func main() {
110112 },
111113 HealthProbeBindAddress : probeAddr ,
112114 LeaderElection : enableLeaderElection ,
113- LeaderElectionID : "639dd9c3 .k0smotron.io" ,
115+ LeaderElectionID : fmt . Sprintf ( "%x .k0smotron.io", md5 . Sum ([] byte ( enabledController ))) ,
114116 // LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
115117 // when the Manager ends. This requires the binary to immediately end when the
116118 // Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
You can’t perform that action at this time.
0 commit comments