From 0fba54d3cca65701af00f014b7ea74af47ab1296 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:06:38 +0200 Subject: [PATCH] Add hosts for detached steps (#4674) --- pipeline/backend/kubernetes/kubernetes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/backend/kubernetes/kubernetes.go b/pipeline/backend/kubernetes/kubernetes.go index 2ddf17852..7902b3785 100644 --- a/pipeline/backend/kubernetes/kubernetes.go +++ b/pipeline/backend/kubernetes/kubernetes.go @@ -199,7 +199,7 @@ func (e *kube) SetupWorkflow(ctx context.Context, conf *types.Config, taskUUID s var extraHosts []types.HostAlias for _, stage := range conf.Stages { for _, step := range stage.Steps { - if step.Type == types.StepTypeService { + if step.Type == types.StepTypeService || step.Detached { svc, err := startService(ctx, e, step) if err != nil { return err