Skip to content

Commit

Permalink
Add ConsolePlugin CR to HCO controller watch list (#2209)
Browse files Browse the repository at this point in the history
Signed-off-by: Oren Cohen <[email protected]>

Signed-off-by: Oren Cohen <[email protected]>
Co-authored-by: Oren Cohen <[email protected]>
  • Loading branch information
kubevirt-bot and orenc1 authored Jan 17, 2023
1 parent 09ea881 commit bba632a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/hyperconverged-cluster-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ func getNewManagerCache(operatorNamespace string) cache.NewCacheFunc {
&consolev1.ConsoleQuickStart{}: {
Label: labelSelector,
},
&consolev1alpha1.ConsolePlugin{}: {
Label: labelSelector,
},
&appsv1.Deployment{}: {
Label: labelSelector,
Field: namespaceSelector,
Expand Down
2 changes: 2 additions & 0 deletions controllers/hyperconverged/hyperconverged_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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{},
Expand Down

0 comments on commit bba632a

Please sign in to comment.