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: Stale drift-detection pod #418

Open
gianlucam76 opened this issue Jan 8, 2024 · 0 comments
Open

BUG: Stale drift-detection pod #418

gianlucam76 opened this issue Jan 8, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@gianlucam76
Copy link
Member

Problem Description

When Sveltos is instructed to deploy agents (sveltos-agent and drift-detection-manager) in the management cluster following sequence leaves a stale drift-detection-manager in the management cluster:

  1. create a Profile/ClusterProfile with mode set to driftDetection
  2. have a cluster/sveltoscluster match => drift-detection-manager is created in the management cluster
  3. change cluster/sveltoscluster labels so it does not match any Profile/ClusterProfile anymore
  4. when all ClusterSummaries instances are gone, delete the cluster/sveltosCluster => drift-detection-manager is state

Reason is the cleanup of the drift-detection-manager happens within ClusterSummary reconciler if the cluster is gone or marked for deletion.
But following above sequence, ClusterSummaries are all gone when cluster is deleted, so the stale drift-detection-manager deployment in the management cluster.

@gianlucam76 gianlucam76 added bug Something isn't working help wanted Extra attention is needed labels Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant