From a67c5dd71f555080f71c0aee1026da74a4d7eb7f Mon Sep 17 00:00:00 2001 From: Coleen Iona Quadros Date: Wed, 18 Oct 2023 16:42:06 +0200 Subject: [PATCH] clean comments Signed-off-by: Coleen Iona Quadros --- .../multiclusterobservability_controller.go | 2 -- .../multiclusterobservability_controller_test.go | 2 -- 2 files changed, 4 deletions(-) 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{