Skip to content

Conversation

@gianlucam76
Copy link
Member

Implements label cleanup logic for the Classifier controller. When a cluster is no longer a match for a Classifier instance, or when the Classifier itself is deleted, the controller now removes all labels it previously managed on those clusters.

This ensures no stale metadata remains on the underlying cluster resources.

The removal logic is guarded by the KeyManager to prevent the accidental deletion of labels managed by other Classifier instances.

Fixes #436

Implements label cleanup logic for the Classifier controller.
When a cluster is no longer a match for a Classifier instance, or
when the Classifier itself is deleted, the controller now removes
all labels it previously managed on those clusters.

This ensures no stale metadata remains on the underlying cluster resources.

The removal logic is guarded by the KeyManager to prevent the accidental
deletion of labels managed by other Classifier instances.
@gianlucam76 gianlucam76 merged commit d2f8ca9 into projectsveltos:main Jan 20, 2026
6 checks passed
@gianlucam76 gianlucam76 deleted the remove-labels branch January 20, 2026 09:38
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: Classifier does not delete labels when it no longer matches

1 participant