Skip to content

fix: Do not remove the Classifier when undeploying from the management cluster - #528

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:sveltos-agent-image
Oct 30, 2026
Merged

gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:sveltos-agent-image

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

When the management cluster is registered as a managed cluster, the Classifier instance found there is the Classifier itself. Undeploying it deleted the Classifier from the handler, bypassing the cleanup of the other clusters.

Skip the instance when it has the same UID as the Classifier in the management cluster. For the other clusters, remove the finalizer older sveltos-agent versions share with classifier-manager before deleting the instance, as sveltos-agent now uses its own finalizer and would not release it.

…t cluster

When the management cluster is registered as a managed cluster, the Classifier
instance found there is the Classifier itself. Undeploying it deleted the
Classifier from the handler, bypassing the cleanup of the other clusters.

Skip the instance when it has the same UID as the Classifier in the management
cluster. For the other clusters, remove the finalizer older sveltos-agent
versions share with classifier-manager before deleting the instance, as
sveltos-agent now uses its own finalizer and would not release it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@gianlucam76
gianlucam76 merged commit 6ea0c89 into projectsveltos:main Oct 30, 2026
9 checks passed
@gianlucam76
gianlucam76 deleted the sveltos-agent-image branch October 30, 2026 12:16
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