From d483ff9b9f2ba8e8280b955f88f14518ba4a07dd Mon Sep 17 00:00:00 2001 From: Fabian Wiesel Date: Tue, 10 Mar 2026 17:46:56 +0100 Subject: [PATCH] Onboarding: Ignore order of aggregates The aggregates controller may re-order the aggregates, so do not rely on the order being preserved. --- internal/controller/onboarding_controller.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/controller/onboarding_controller.go b/internal/controller/onboarding_controller.go index 580d074..b0a72eb 100644 --- a/internal/controller/onboarding_controller.go +++ b/internal/controller/onboarding_controller.go @@ -22,7 +22,6 @@ import ( "errors" "fmt" "net/http" - "slices" "strings" "time" @@ -205,7 +204,7 @@ func (r *OnboardingController) initialOnboarding(ctx context.Context, hv *kvmv1. currentAggregateNames[i] = agg.Name } expectedAggregates := []string{zone, testAggregateName} - if !slices.Equal(currentAggregateNames, expectedAggregates) { + if !slicesEqualUnordered(currentAggregateNames, expectedAggregates) { // Aggregates not yet applied, requeue return errRequeue }