From 03ca944422b584c50af346fde451c431a79d25f8 Mon Sep 17 00:00:00 2001 From: Gianluca Mardente Date: Sat, 4 Oct 2025 11:34:43 +0200 Subject: [PATCH] (bug) KustomizationRefs and ContinuousWithDriftDetection When Sveltos is deployed with agent in the management cluster, the drift-detection-manager deployments are created in the management cluster. A bug in the KustomizationRefs section was causing Sveltos to deploy drift-detection-manager in the managed clusters instead. This PR fixes that. --- controllers/handlers_kustomize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/handlers_kustomize.go b/controllers/handlers_kustomize.go index 706d7fa9..6ff29784 100644 --- a/controllers/handlers_kustomize.go +++ b/controllers/handlers_kustomize.go @@ -958,7 +958,7 @@ func handleDriftDetectionManagerDeploymentForKustomize(ctx context.Context, clus // Deploy drift detection manager first. Have manager up by the time resourcesummary is created err := deployDriftDetectionManagerInCluster(ctx, getManagementClusterClient(), clusterNamespace, clusterName, clusterSummary.Name, string(libsveltosv1beta1.FeatureKustomize), clusterType, - startInMgmtCluster, isPullMode, logger) + isPullMode, startInMgmtCluster, logger) if err != nil { return err }