Skip to content

fix: Remove Classifier instances from pull mode clusters in agentless mode - #531

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:remove-classifier
Oct 30, 2026
Merged

gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:remove-classifier

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

In agentless mode reconcileDelete skipped undeployClassifier altogether, assuming no Classifier instance is ever copied to a managed cluster. That holds for clusters in push mode only: clusters in pull mode always get a copy, which was never removed once the Classifier was deleted.

reconcileDelete now always calls undeployClassifier. When sveltos-agent runs in the management cluster, undeployClassifier skips the clusters which are not in pull mode, as they have no Classifier instance (nor the CRD).

… mode

In agentless mode reconcileDelete skipped undeployClassifier altogether,
assuming no Classifier instance is ever copied to a managed cluster. That
holds for clusters in push mode only: clusters in pull mode always get a
copy, which was never removed once the Classifier was deleted.

reconcileDelete now always calls undeployClassifier. When sveltos-agent runs
in the management cluster, undeployClassifier skips the clusters which are
not in pull mode, as they have no Classifier instance (nor the CRD).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@gianlucam76
gianlucam76 merged commit 553d5eb into projectsveltos:main Oct 30, 2026
9 checks passed
@gianlucam76
gianlucam76 deleted the remove-classifier branch October 30, 2026 21:22
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