1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2026-06-03 16:35:37 +02:00

fix: Reintroduce stop all pods on workflow (#5815)

This commit is contained in:
Martin Schmidt
2025-12-02 21:10:01 +01:00
committed by GitHub
parent 9f828c96b0
commit 6aab68063c
@@ -455,6 +455,15 @@ func (e *kube) DestroyStep(ctx context.Context, step *types.Step, taskUUID strin
func (e *kube) DestroyWorkflow(ctx context.Context, conf *types.Config, taskUUID string) error {
log.Trace().Str("taskUUID", taskUUID).Msg("deleting Kubernetes primitives")
for _, stage := range conf.Stages {
for _, step := range stage.Steps {
err := stopPod(ctx, e, step, defaultDeleteOptions)
if err != nil {
return err
}
}
}
namespace := e.config.GetNamespace(conf.Stages[0].Steps[0].OrgID)
log.Trace().Str("taskUUID", taskUUID).Msgf("deleting workflow headless service")