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

Revert "(bug) when cluster is marked as deleted avoid triggering clea… #720

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

gianlucam76
Copy link
Member

@gianlucam76 gianlucam76 commented Oct 5, 2024

Sveltos deploys resources in the management cluster when the deploymenType is set to Local.
Even if a cluster is marked as deleted, Sveltos will still need to remove all resources deployed in the management cluster for that cluster. So this PR lets Sveltos undeploy even for clusters marked as deleted.

If the managed cluster API server is unreachable after the Helm SDK uninstall is triggered, the Helm SDK will get stuck. Helm charts are only deployed in the matching cluster, so Sveltos will skip calling Helm uninstall for any deleted cluster.

This reverts commit ce9e7f6.

Fixes #719

…nup"

Sveltos deploys resources in the management cluster when the `deploymenType`
is set to `Local`.
Even if a cluster is marked as deleted, Sveltos will still need to remove
all resources deployed in the management cluster for that cluster.
So this PR lets Sveltos undeploy even for clusters marked as deleted.

If the managed cluster API server is unreachable after the
Helm SDK uninstall is triggered, the Helm SDK will get stuck.
Helm charts are only deployed in the matching cluster, so Sveltos
will skip calling Helm uninstall for any deleted cluster.

This reverts commit ce9e7f6.
@gianlucam76 gianlucam76 merged commit 007e3c0 into projectsveltos:main Oct 5, 2024
5 checks passed
@gianlucam76 gianlucam76 deleted the fix-cleanup branch October 5, 2024 14:41
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