Skip to content

BUG: Stale drift-detection pod #418

@gianlucam76

Description

@gianlucam76

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions