Simplify backend types (#5299)

This commit is contained in:
qwerty287
2025-07-05 12:59:17 +03:00
committed by GitHub
parent c97467ddcd
commit fe5ea7ad3b
10 changed files with 124 additions and 230 deletions

View File

@@ -191,7 +191,7 @@ func (e *kube) getConfig() *config {
func (e *kube) SetupWorkflow(ctx context.Context, conf *types.Config, taskUUID string) error {
log.Trace().Str("taskUUID", taskUUID).Msgf("Setting up Kubernetes primitives")
_, err := startVolume(ctx, e, conf.Volume.Name)
_, err := startVolume(ctx, e, conf.Volume)
if err != nil {
return err
}
@@ -425,7 +425,7 @@ func (e *kube) DestroyWorkflow(ctx context.Context, conf *types.Config, taskUUID
}
}
err := stopVolume(ctx, e, conf.Volume.Name, defaultDeleteOptions)
err := stopVolume(ctx, e, conf.Volume, defaultDeleteOptions)
if err != nil {
return err
}