Skip to content

Commit e901162

Browse files
authored
Merge pull request #1697 from gianlucam76/pullmode
(bug) fix combination agent in mgmt cluster and pullmode cluster
2 parents f9b3752 + 3c1ab75 commit e901162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/resourcesummary.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func deployDriftDetectionManagerInCluster(ctx context.Context, c client.Client,
110110

111111
logger.V(logs.LogDebug).Info("Deploying drift-detection-manager")
112112
// Deploy DriftDetectionManager
113-
if startInMgmtCluster {
113+
if startInMgmtCluster && !isPullMode {
114114
restConfig := getManagementClusterConfig()
115115
return deployDriftDetectionManagerInManagementCluster(ctx, restConfig, clusterNamespace,
116116
clusterName, "do-not-send-updates", clusterType, patches, logger)
@@ -125,7 +125,7 @@ func deployDriftDetectionCRDs(ctx context.Context, clusterNamespace, clusterName
125125

126126
// CRDs must be deployed alongside the agent. Since the management cluster already contains these CRDs,
127127
// this operation is a no-op if the agent is deployed there.
128-
if startInMgmtCluster {
128+
if startInMgmtCluster && !isPullMode {
129129
return nil
130130
}
131131

0 commit comments

Comments
 (0)