From c1c325d75ff157b9651717f051ad4e228278936b 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:14 +0100 Subject: [PATCH] Update controllers/targetallocator_controller.go Co-authored-by: Jacob Aronoff --- controllers/targetallocator_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/targetallocator_controller.go b/controllers/targetallocator_controller.go index 5a592f2491..dd51a8fceb 100644 --- a/controllers/targetallocator_controller.go +++ b/controllers/targetallocator_controller.go @@ -89,7 +89,7 @@ func (r *TargetAllocatorReconciler) getParams(ctx context.Context, instance v1al func (r *TargetAllocatorReconciler) getCollector(ctx context.Context, instance v1alpha1.TargetAllocator) (*v1beta1.OpenTelemetryCollector, error) { var collector v1beta1.OpenTelemetryCollector - // check if a collactor is the owner of this Target Allocator + // check if a collector is the owner of this Target Allocator ownerReferences := instance.GetOwnerReferences() collectorIndex := slices.IndexFunc(ownerReferences, func(reference metav1.OwnerReference) bool { return reference.Kind == "OpenTelemetryCollector"