diff --git a/cmd/hyperconverged-cluster-operator/main.go b/cmd/hyperconverged-cluster-operator/main.go index 9befc8f78d..c64a389e58 100644 --- a/cmd/hyperconverged-cluster-operator/main.go +++ b/cmd/hyperconverged-cluster-operator/main.go @@ -237,6 +237,9 @@ func getNewManagerCache(operatorNamespace string) cache.NewCacheFunc { &consolev1.ConsoleQuickStart{}: { Label: labelSelector, }, + &consolev1alpha1.ConsolePlugin{}: { + Label: labelSelector, + }, &appsv1.Deployment{}: { Label: labelSelector, Field: namespaceSelector, diff --git a/controllers/hyperconverged/hyperconverged_controller.go b/controllers/hyperconverged/hyperconverged_controller.go index afb49c710e..31aa30b70f 100644 --- a/controllers/hyperconverged/hyperconverged_controller.go +++ b/controllers/hyperconverged/hyperconverged_controller.go @@ -13,6 +13,7 @@ import ( "github.com/google/uuid" openshiftconfigv1 "github.com/openshift/api/config/v1" consolev1 "github.com/openshift/api/console/v1" + consolev1alpha1 "github.com/openshift/api/console/v1alpha1" imagev1 "github.com/openshift/api/image/v1" routev1 "github.com/openshift/api/route/v1" operatorhandler "github.com/operator-framework/operator-lib/handler" @@ -192,6 +193,7 @@ func add(mgr manager.Manager, r reconcile.Reconciler, ci hcoutil.ClusterInfo) er &routev1.Route{}, &consolev1.ConsoleCLIDownload{}, &consolev1.ConsoleQuickStart{}, + &consolev1alpha1.ConsolePlugin{}, &imagev1.ImageStream{}, &corev1.Namespace{}, &appsv1.Deployment{},