Skip to content

Commit d95b143

Browse files
committed
Onboarding: Ignore order of aggregates
The aggregates controller may re-order the aggregates, so do not rely on the order being preserved.
1 parent 9c8ed61 commit d95b143

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/controller/onboarding_controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"errors"
2323
"fmt"
2424
"net/http"
25-
"slices"
2625
"strings"
2726
"time"
2827

@@ -205,7 +204,7 @@ func (r *OnboardingController) initialOnboarding(ctx context.Context, hv *kvmv1.
205204
currentAggregateNames[i] = agg.Name
206205
}
207206
expectedAggregates := []string{zone, testAggregateName}
208-
if !slices.Equal(currentAggregateNames, expectedAggregates) {
207+
if !slicesEqualUnordered(currentAggregateNames, expectedAggregates) {
209208
// Aggregates not yet applied, requeue
210209
return errRequeue
211210
}

0 commit comments

Comments
 (0)