Skip to content

Commit

Permalink
Add leaderelection to addon-manager. (#196)
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <zxue@redhat.com>
  • Loading branch information
xuezhaojun committed Jun 3, 2024
1 parent 261e725 commit ebea84f
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 @@ -204,6 +204,7 @@ func main() {
defer cancel()
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 ebea84f

Please sign in to comment.