Skip to content

fix: Do not clear drift reported while a ResourceSummary is processed - #2077

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:fix-resourcesummary-reset-lost-drift
Oct 30, 2026
Merged

gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:fix-resourcesummary-reset-lost-drift

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

resetResourceSummaryStatus fetched the ResourceSummary again and cleared its status. A drift reported by drift-detection-manager between the list and that Get was cleared without being processed, so its feature was not redeployed until a new drift was reported.

Reset the copy that was processed, with its resourceVersion. If the ResourceSummary changed after it was listed, the update fails with a Conflict and the next collection processes it again.

Fixes #2076

resetResourceSummaryStatus fetched the ResourceSummary again and cleared
its status. A drift reported by drift-detection-manager between the list
and that Get was cleared without being processed, so its feature was not
redeployed until a new drift was reported.

Reset the copy that was processed, with its resourceVersion. If the
ResourceSummary changed after it was listed, the update fails with a
Conflict and the next collection processes it again.

Fixes projectsveltos#2076
@gianlucam76
gianlucam76 merged commit 6f0796d into projectsveltos:main Oct 30, 2026
12 checks passed
@gianlucam76
gianlucam76 deleted the fix-resourcesummary-reset-lost-drift branch October 30, 2026 20:49
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.

BUG: a drift reported while a ResourceSummary is being processed is cleared without being processed

1 participant