diff --git a/cmd/addon-manager/main.go b/cmd/addon-manager/main.go index 7c23008e..c7025fe1 100644 --- a/cmd/addon-manager/main.go +++ b/cmd/addon-manager/main.go @@ -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) diff --git a/pkg/proxyserver/controllers/managedproxyconfiguration_controller.go b/pkg/proxyserver/controllers/managedproxyconfiguration_controller.go index 19fb3320..13a407a3 100644 --- a/pkg/proxyserver/controllers/managedproxyconfiguration_controller.go +++ b/pkg/proxyserver/controllers/managedproxyconfiguration_controller.go @@ -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"