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
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.5SVELTOS VERSION:
1.8.0KUBERNETES VERSION:
1.33.1