From 39b47d0b9dd843faf72d038af005cba01fe61be0 Mon Sep 17 00:00:00 2001 From: Asirian Aleksandr Date: Wed, 3 Apr 2024 02:26:33 +0200 Subject: [PATCH] namespaced fetch attached --- controllers/infrastructure/byomachine_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/infrastructure/byomachine_controller.go b/controllers/infrastructure/byomachine_controller.go index 827bb9f7..2aad76e8 100644 --- a/controllers/infrastructure/byomachine_controller.go +++ b/controllers/infrastructure/byomachine_controller.go @@ -197,7 +197,7 @@ func (r *ByoMachineReconciler) FetchAttachedByoHost(ctx context.Context, byomach err := r.Client.List( ctx, hostsList, - &client.ListOptions{LabelSelector: selector}, + &client.ListOptions{LabelSelector: selector, Namespace: byomachineNamespace}, ) if err != nil { return nil, err