Skip to content

Commit da7f5a7

Browse files
swiatekmjaronoff97
andcommitted
Apply suggestions from code review
Co-authored-by: Jacob Aronoff <[email protected]>
1 parent 2ddd8cf commit da7f5a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/targetallocator_controller.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (r *TargetAllocatorReconciler) getParams(ctx context.Context, instance v1al
8484

8585
// getCollector finds the OpenTelemetryCollector for the given TargetAllocator. We have the following possibilities:
8686
// - Collector is the owner of the TargetAllocator
87-
// - Collector is annotated with the TargetAllocator's name
87+
// - Collector is labeled with the TargetAllocator's name
8888
// - No collector
8989
func (r *TargetAllocatorReconciler) getCollector(ctx context.Context, instance v1alpha1.TargetAllocator) (*v1beta1.OpenTelemetryCollector, error) {
9090
var collector v1beta1.OpenTelemetryCollector
@@ -105,7 +105,7 @@ func (r *TargetAllocatorReconciler) getCollector(ctx context.Context, instance v
105105
return &collector, nil
106106
}
107107

108-
// check if there are Collectors annotated with this Target Allocator's name
108+
// check if there are Collectors labeled with this Target Allocator's name
109109
var collectors v1beta1.OpenTelemetryCollectorList
110110
listOpts := []client.ListOption{
111111
client.InNamespace(instance.GetNamespace()),

0 commit comments

Comments
 (0)