From da34102702976dc63b7d7e645ecb734f00239fe5 Mon Sep 17 00:00:00 2001 From: Saswata Mukherjee Date: Thu, 19 Oct 2023 10:24:37 +0530 Subject: [PATCH] Fix lint Signed-off-by: Saswata Mukherjee --- .../multiclusterobservability_controller.go | 2 +- .../controllers/multiclusterobservability/predicate_func.go | 4 ++++ .../multiclusterobservability/predicate_func_test.go | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller.go b/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller.go index 1af3cfcf5..7400c6b6a 100644 --- a/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller.go +++ b/operators/multiclusterobservability/controllers/multiclusterobservability/multiclusterobservability_controller.go @@ -144,7 +144,7 @@ func (r *MultiClusterObservabilityReconciler) Reconcile(ctx context.Context, req StartStatusUpdate(r.Client, instance) ingressCtlCrdExists := r.CRDMap[config.IngressControllerCRD] - if os.Getenv("UNIT_TEST") != "true" { + if _, ok := os.LookupEnv("UNIT_TEST"); !ok { // start placement controller err := placementctrl.StartPlacementController(r.Manager, r.CRDMap) if err != nil { diff --git a/operators/multiclusterobservability/controllers/multiclusterobservability/predicate_func.go b/operators/multiclusterobservability/controllers/multiclusterobservability/predicate_func.go index c1e5aa465..af7f25c13 100644 --- a/operators/multiclusterobservability/controllers/multiclusterobservability/predicate_func.go +++ b/operators/multiclusterobservability/controllers/multiclusterobservability/predicate_func.go @@ -1,3 +1,7 @@ +// Copyright (c) Red Hat, Inc. +// Copyright Contributors to the Open Cluster Management project +// Licensed under the Apache License 2.0 + package multiclusterobservability import ( diff --git a/operators/multiclusterobservability/controllers/multiclusterobservability/predicate_func_test.go b/operators/multiclusterobservability/controllers/multiclusterobservability/predicate_func_test.go index 2ea87a6a5..1c6cf71bb 100644 --- a/operators/multiclusterobservability/controllers/multiclusterobservability/predicate_func_test.go +++ b/operators/multiclusterobservability/controllers/multiclusterobservability/predicate_func_test.go @@ -1,3 +1,7 @@ +// Copyright (c) Red Hat, Inc. +// Copyright Contributors to the Open Cluster Management project +// Licensed under the Apache License 2.0 + package multiclusterobservability import (