Skip to content

Commit

Permalink
Add leaderelection on mce 2.4 (#127)
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
xuezhaojun authored Jul 4, 2024
1 parent 4fb3059 commit 8ffc5f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/addon-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ func main() {
go informerFactory.Start(ctx.Done())
go nativeInformer.Start(ctx.Done())
go func() {
<-mgr.Elected()
if err := addonManager.Start(ctx); err != nil {
setupLog.Error(err, "unable to start addon manager")
os.Exit(1)
Expand Down

0 comments on commit 8ffc5f0

Please sign in to comment.