From e75275a8dcd1ae0c23e6ec3304c93f320ec362d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20=C5=9Awi=C4=85tek?= Date: Mon, 2 Dec 2024 16:41:45 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jacob Aronoff --- controllers/targetallocator_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/targetallocator_controller.go b/controllers/targetallocator_controller.go index dd51a8fceb..c792038a07 100644 --- a/controllers/targetallocator_controller.go +++ b/controllers/targetallocator_controller.go @@ -84,7 +84,7 @@ func (r *TargetAllocatorReconciler) getParams(ctx context.Context, instance v1al // getCollector finds the OpenTelemetryCollector for the given TargetAllocator. We have the following possibilities: // - Collector is the owner of the TargetAllocator -// - Collector is annotated with the TargetAllocator's name +// - Collector is labeled with the TargetAllocator's name // - No collector func (r *TargetAllocatorReconciler) getCollector(ctx context.Context, instance v1alpha1.TargetAllocator) (*v1beta1.OpenTelemetryCollector, error) { var collector v1beta1.OpenTelemetryCollector @@ -105,7 +105,7 @@ func (r *TargetAllocatorReconciler) getCollector(ctx context.Context, instance v return &collector, nil } - // check if there are Collectors annotated with this Target Allocator's name + // check if there are Collectors labeled with this Target Allocator's name var collectors v1beta1.OpenTelemetryCollectorList listOpts := []client.ListOption{ client.InNamespace(instance.GetNamespace()),