Deploy kubevirt's serviceMonitor object in our namespace ,
it is better to move it to our namespace because keeping components
in our namespace makes management easier.
@@ -259,6 +259,7 @@ func NewKubeVirt(hc *hcov1beta1.HyperConverged, opts ...string) (*kubevirtcorev1
ProductName: hcoutil.HyperConvergedCluster,
ProductVersion: os.Getenv(hcoutil.HcoKvIoVersionName),
ProductComponent: string(hcoutil.AppComponentCompute),
+ ServiceMonitorNamespace: getNamespace(hc.Namespace, opts),
}
kv := NewKubeVirtWithNameOnly(hc, opts...)
