From cdf8c47e4c53073d6b39348b40f097e3464faa6b Mon Sep 17 00:00:00 2001 From: Tamir David Date: Wed, 9 Oct 2024 17:08:07 +0300 Subject: [PATCH] feat: removing leader election from instrumentor/scheduler/autoscaler --- autoscaler/main.go | 2 -- instrumentor/main.go | 2 -- scheduler/main.go | 2 -- 3 files changed, 6 deletions(-) diff --git a/autoscaler/main.go b/autoscaler/main.go index b8b264832..29ab1553e 100644 --- a/autoscaler/main.go +++ b/autoscaler/main.go @@ -149,8 +149,6 @@ func main() { }, }, HealthProbeBindAddress: probeAddr, - LeaderElection: enableLeaderElection, - LeaderElectionID: "f681cfed.odigos.io", }) if err != nil { setupLog.Error(err, "unable to start manager") diff --git a/instrumentor/main.go b/instrumentor/main.go index 67a9494b9..d9352c76b 100644 --- a/instrumentor/main.go +++ b/instrumentor/main.go @@ -107,8 +107,6 @@ func main() { BindAddress: metricsAddr, }, HealthProbeBindAddress: probeAddr, - LeaderElection: enableLeaderElection, - LeaderElectionID: "201bdfa0.odigos.io", Cache: cache.Options{ DefaultTransform: cache.TransformStripManagedFields(), // Store minimum amount of data for every object type. diff --git a/scheduler/main.go b/scheduler/main.go index 8ad645639..1a9de9846 100644 --- a/scheduler/main.go +++ b/scheduler/main.go @@ -77,8 +77,6 @@ func main() { BindAddress: metricsAddr, }, HealthProbeBindAddress: probeAddr, - LeaderElection: enableLeaderElection, - LeaderElectionID: "ce024640.odigos.io", }) if err != nil { setupLog.Error(err, "unable to start manager")