Description of problem:
While installing netobserv on rancher (actually, on any distro that has ServiceMonitor api installed), this error shows up:
2024-07-08T13:37:33.985Z ERROR monitoring Monitoring reconcile failure {"error": "namespaces \"openshift-config-managed\" not found"} github.com/netobserv/network-observability-operator/controllers/monitoring.(*Reconciler).Reconcile /opt/app-root/controllers/monitoring/monitoring_controller.go:77 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile /opt/app-root/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler /opt/app-root/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem /opt/app-root/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:261 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2 /opt/app-root/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:222
The monitoring controller should only run on openshift.
It can also be reproduced by using KIND and installing the ServiceMonitor CRD