Skip to content

Commit

Permalink
Enable leader election.
Browse files Browse the repository at this point in the history
  • Loading branch information
inelpandzic committed Dec 24, 2024
1 parent 2dddc34 commit df44034
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion percona/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ func CreateRuntimeManager(namespaces string, config *rest.Config, disableMetrics
Cache: cache.Options{
SyncPeriod: &refreshInterval,
},
Scheme: r.Scheme,
Scheme: r.Scheme,
LeaderElection: true,
LeaderElectionID: "08db3feb.percona.com",
}

options.BaseContext = func() context.Context {
Expand Down

0 comments on commit df44034

Please sign in to comment.