Skip to content

[v0.11] Stable BundleDeployment modified/nonReady status #3533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

aruiz14
Copy link
Contributor

@aruiz14 aruiz14 commented Apr 10, 2025

Refers to #3532

While we are sorting the result of modified and nonReady, since we early aborting after reaching the items limit, that subset of items could be different on every execution, ending up with an ordered subset but not idempotent results.

I'm introducing the new Go iterator library to make sure we are iterating over the map inputs in order directly.

@aruiz14 aruiz14 requested a review from a team as a code owner April 10, 2025 10:06
@aruiz14 aruiz14 changed the title [v0.11] Stable bd modified nonready status 0.11 [v0.11] Stable BundleDeployment modified/nonReady status 0.11 Apr 10, 2025
@kkaempf kkaempf added this to Fleet Apr 10, 2025
@kkaempf kkaempf moved this to 👀 In review in Fleet Apr 10, 2025
@kkaempf kkaempf added this to the v2.10.6 milestone Apr 10, 2025
@aruiz14 aruiz14 force-pushed the stable-bd-modified-nonready-status-0.11 branch from 1426e63 to 336d8c6 Compare April 10, 2025 10:11
@@ -263,7 +285,11 @@ func modified(ctx context.Context, c client.Client, logger logr.Logger, plan des
return sortKey(result[i]) < sortKey(result[j])
Copy link
Contributor Author

@aruiz14 aruiz14 Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to keep sorting result, since the keys in plan's Create, Delete, Update could be different.

@aruiz14 aruiz14 force-pushed the stable-bd-modified-nonready-status-0.11 branch from 336d8c6 to 94691b1 Compare April 10, 2025 10:22
@aruiz14 aruiz14 changed the title [v0.11] Stable BundleDeployment modified/nonReady status 0.11 [v0.11] Stable BundleDeployment modified/nonReady status Apr 10, 2025
@aruiz14 aruiz14 enabled auto-merge (squash) April 23, 2025 11:32
@aruiz14 aruiz14 merged commit 38a03f2 into rancher:release/v0.11 Apr 23, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Fleet Apr 23, 2025
@aruiz14 aruiz14 deleted the stable-bd-modified-nonready-status-0.11 branch April 23, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants