Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 27, 2024

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
15 checks passed
@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
1 participant