From e65b50cf3cce36e06291e4b2ebe48a2014c7bd7d Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Mon, 18 Nov 2024 12:22:14 +0100 Subject: [PATCH] fix: Wrong condition --- bundle/config/mutator/process_target_mode.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/bundle/config/mutator/process_target_mode.go b/bundle/config/mutator/process_target_mode.go index 81330d87ea..16b81ebb59 100644 --- a/bundle/config/mutator/process_target_mode.go +++ b/bundle/config/mutator/process_target_mode.go @@ -59,19 +59,18 @@ func transformDevelopmentMode(ctx context.Context, b *bundle.Bundle) { } if !config.IsExplicitlyDisabled(t.InPlaceDeployment) { - enabled := true - t.InPlaceDeployment = &enabled - } - - if !config.IsExplicitlyDisabled(t.PipelinesDevelopment) { root := b.SyncRootPath isInWorkspace := strings.HasPrefix(root, "/Workspace/") - if isInWorkspace && dbr.RunsOnRuntime(ctx) { enabled := true - t.PipelinesDevelopment = &enabled + t.InPlaceDeployment = &enabled } } + + if !config.IsExplicitlyDisabled(t.PipelinesDevelopment) { + enabled := true + t.PipelinesDevelopment = &enabled + } } func validateDevelopmentMode(b *bundle.Bundle) diag.Diagnostics {