1
0
mirror of https://codeberg.org/crowci/crow.git synced 2025-08-09 07:42:52 +03:00

Refactor docker backend and add more test coverage (#2700)

collection of some smal nit's and additions of tests
This commit is contained in:
6543
2024-07-21 21:28:10 +02:00
committed by GitHub
parent 720a076dd4
commit b2970dbf0d
5 changed files with 109 additions and 25 deletions

View File

@@ -395,7 +395,6 @@ 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")
// Use noContext because the ctx sent to this function will be canceled/done in case of error or canceled by user.
for _, stage := range conf.Stages {
for _, step := range stage.Steps {
err := stopPod(ctx, e, step, defaultDeleteOptions)