Skip to content

Commit

Permalink
Fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
inelpandzic committed Dec 24, 2024
1 parent 0161b4c commit 32a6418
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions percona/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ func CreateRuntimeManager(namespaces string, config *rest.Config, disableMetrics
LeaderElectionID: "08db3feb.percona.com",
}

if disableLeaderElection {
options.LeaderElection = false
options.LeaderElectionID = ""
}

options.BaseContext = func() context.Context {
ctx := context.Background()
return feature.NewContext(ctx, features)
Expand Down

0 comments on commit 32a6418

Please sign in to comment.