Skip to content

(bug) when cluster is marked as deleted avoid triggering cleanup#712

Merged
gianlucam76 merged 3 commits intoprojectsveltos:release-0.38from
gianlucam76:cluster-deleted
Sep 27, 2024
Merged

(bug) when cluster is marked as deleted avoid triggering cleanup#712
gianlucam76 merged 3 commits intoprojectsveltos:release-0.38from
gianlucam76:cluster-deleted

Conversation

@gianlucam76
Copy link
Copy Markdown
Member

Clusters marked as deleted are scheduled for removal once their finalizer is removed.
Therefore, initiating cleanup while a cluster is in this state is redundant.

Prior to this change, Sveltos would trigger cleanup for a cluster instance even
if it was marked as deleted. However, if Sveltos invoked the Helm SDK as part
of the cleanup and the Helm uninstall client encountered an unreachable cluster
api-server, the Helm SDK would become stuck.

To prevent this issue and avoid unnecessary feature cleanup for clusters marked
for deletion, this PR has been implemented.

mgianluc and others added 3 commits September 25, 2024 11:20
Post release v0.38.3
Clusters marked as deleted are scheduled for removal once their finalizer is removed.
Therefore, initiating cleanup while a cluster is in this state is redundant.

Prior to this change, Sveltos would trigger cleanup for a cluster instance even
if it was marked as deleted. However, if Sveltos invoked the Helm SDK as part
of the cleanup and the Helm uninstall client encountered an unreachable cluster
api-server, the Helm SDK would become stuck.

To prevent this issue and avoid unnecessary feature cleanup for clusters marked
for deletion, this PR has been implemented.
@gianlucam76 gianlucam76 merged commit e9fd430 into projectsveltos:release-0.38 Sep 27, 2024
@gianlucam76 gianlucam76 deleted the cluster-deleted branch September 27, 2024 08:40
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