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 (