Skip to content

Commit

Permalink
Update controllers/targetallocator_controller.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Aronoff <[email protected]>
  • Loading branch information
swiatekm and jaronoff97 committed Dec 19, 2024
1 parent 6f5e764 commit 6a4ec6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/targetallocator_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6a4ec6d

Please sign in to comment.