diff --git a/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller.go b/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller.go index 1adc8b1375..56b6b56fe6 100644 --- a/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller.go +++ b/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller.go @@ -947,7 +947,6 @@ func cleanUpClusterScopedResources( return nil } -// Delete the PrometheusRule in openshift-monitoring namespace func (r *MultiClusterObservabilityReconciler) deleteSpecificPrometheusRule(ctx context.Context) error { promRule := &monitoringv1.PrometheusRule{} err := r.Client.Get(ctx, client.ObjectKey{Name: "acm-observability-alert-rules", @@ -967,7 +966,6 @@ func (r *MultiClusterObservabilityReconciler) deleteSpecificPrometheusRule(ctx c return nil } -// Delete the ServiceMonitor in openshift-monitoring namespace func (r *MultiClusterObservabilityReconciler) deleteServiceMonitorInOpenshiftMonitoringNamespace(ctx context.Context) error { serviceMonitorList := &monitoringv1.ServiceMonitorList{} err := r.Client.List(ctx, serviceMonitorList, client.InNamespace("openshift-monitoring")) diff --git a/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller_test.go b/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller_test.go index ef8bcf503d..0725e95c72 100644 --- a/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller_test.go +++ b/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller_test.go @@ -958,7 +958,6 @@ func createPersistentVolumeClaim(name, namespace, pvcName string) *corev1.Persis } } -// Test Prometheus Rules removed from open shift monitoring namespace func TestPrometheusRulesRemovedFromOpenshiftMonitoringNamespace(t *testing.T) { promRule := &monitoringv1.PrometheusRule{ ObjectMeta: metav1.ObjectMeta{ @@ -990,7 +989,6 @@ func TestPrometheusRulesRemovedFromOpenshiftMonitoringNamespace(t *testing.T) { } } -// Test Service Monitor removed from open shift monitoring namespace func TestServiceMonitorRemovedFromOpenshiftMonitoringNamespace(t *testing.T) { sm := &monitoringv1.ServiceMonitor{ ObjectMeta: metav1.ObjectMeta{