Skip to content

fix: paused Profile reports status and paused Profile/ClusterProfile can be deleted - #2134

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:fix-paused-profile-deletion-and-status
Nov 28, 2026
Merged

gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:fix-paused-profile-deletion-and-status

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

A Profile with the paused annotation returned before its status was persisted, so ReconciliationSuspended and SuspensionReason were never saved (#2132). Close the profile scope in a defer before the pause check, as the ClusterProfile controller already does.

A paused Profile or ClusterProfile that was being deleted returned early too, so its finalizer was never removed and its ClusterSummaries were never cleaned up (#2133). Pause stops changes from being propagated to clusters: it must not block deletion, so the pause check now applies only when the object is not being deleted.

Add unit specs for both controllers and one functional test covering both issues.

Fixes #2132 #2133

…can be deleted

A Profile with the paused annotation returned before its status was
persisted, so ReconciliationSuspended and SuspensionReason were never
saved (projectsveltos#2132). Close the profile scope in a defer before the pause check,
as the ClusterProfile controller already does.

A paused Profile or ClusterProfile that was being deleted returned early
too, so its finalizer was never removed and its ClusterSummaries were
never cleaned up (projectsveltos#2133). Pause stops changes from being propagated to
clusters: it must not block deletion, so the pause check now applies only
when the object is not being deleted.

Add unit specs for both controllers and one functional test covering both
issues.

Fixes projectsveltos#2132 projectsveltos#2133
@gianlucam76
gianlucam76 merged commit a880577 into projectsveltos:main Nov 28, 2026
14 checks passed
@gianlucam76
gianlucam76 deleted the fix-paused-profile-deletion-and-status branch November 28, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant