Skip to content

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

Merged
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:cluster-deleted
Sep 27, 2024
Merged

(bug) when cluster is marked as deleted avoid triggering cleanup#710
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:cluster-deleted

Conversation

@gianlucam76
Copy link
Member

@gianlucam76 gianlucam76 commented Sep 26, 2024

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.

Fixes #609
Fixes #711

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 c34c650 into projectsveltos:main Sep 27, 2024
@gianlucam76 gianlucam76 deleted the cluster-deleted branch September 27, 2024 06:38
@gianlucam76 gianlucam76 restored the cluster-deleted branch September 27, 2024 08:02
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: addons does not get installed on cluster, if a cluster is deleted and recreated with the same name BUG: Re-deploy does not happen

1 participant