Skip to content

Retry on conflict when removing owner reference from ClusterConfiguration#1861

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:retry
Jul 4, 2026
Merged

Retry on conflict when removing owner reference from ClusterConfiguration#1861
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:retry

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

Since a ClusterConfiguration is keyed only by cluster (not by profile), every ClusterProfile/Profile matching a given cluster shares the same object. With multiple concurrent reconciles by default, deleting multiple profiles that match the same cluster around the same time causes their reconciler to race on that one object. The second writer to reach the API server got a 409.

This PR wraps that in a retry.RetryOnConflict

…tion

Since a ClusterConfiguration is keyed only by cluster (not by profile), every
ClusterProfile/Profile matching a given cluster shares the same object. With
multiple concurrent reconciles by default, deleting multiple profiles that
match the same cluster around the same time causes their reconciler to race
on that one object. The second writer to reach the API server got a 409.

This PR wraps that in a retry.RetryOnConflict
@gianlucam76 gianlucam76 merged commit bc7a956 into projectsveltos:main Jul 4, 2026
9 checks passed
@gianlucam76 gianlucam76 deleted the retry branch July 4, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant