Add hosts for detached steps (#4674)

This commit is contained in:
qwerty287 2025-01-06 18:06:38 +02:00 committed by GitHub
parent 0eccf12aa1
commit 0fba54d3cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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