Skip to content

Commit

Permalink
Simplify installer watchers (open-cluster-management-io#180)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jul 10, 2024
1 parent 55e2f5b commit 2159544
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/addon-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func main() {
defer cancel()
go hostNativeInformer.Start(ctx.Done())
go func() {
<-mgr.Elected()
<-hostManager.Elected()
if err := addonManager.Start(ctx); err != nil {
setupLog.Error(err, "unable to start addon manager")
os.Exit(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/openshift/library-go/pkg/crypto"
"github.com/openshift/library-go/pkg/operator/events"
"github.com/pkg/errors"

corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/equality"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down

0 comments on commit 2159544

Please sign in to comment.