Skip to content

BUG: drift detection manager is installed erroneously on addon-controller restart for non drift detection clusters #1742

@kylewuolle

Description

@kylewuolle

Problem Description

If a sveltos cluster does not have drift detection enabled and the addon controller is restarted then the drift-detection-manager deployment is created because the skipUpgrading function does not ensure that a cluster actually has drift detection enabled. This is because skipUpgrading just checks for the existence of the ResourceSummary CRD but not whether the drift detection is actually deployed.

System Information

CLUSTERAPI VERSION: 1.12.5
SVELTOS VERSION: 1.8.0
KUBERNETES VERSION: 1.33.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions