Skip to content

Commit

Permalink
Add leaderelection in addon-manager in mce 2.5 (#126)
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 6f78f40 commit f6c7c81
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 f6c7c81

Please sign in to comment.