using no concrrent create container with nerdctl

Signed-off-by: Kay Yan <kay.yan@daocloud.io>
This commit is contained in:
Kay Yan
2024-04-03 05:04:11 +00:00
parent 506824abbd
commit a73cd978ae

View File

@@ -107,7 +107,12 @@ func (p *provider) Provision(status *cli.Status, cfg *config.Cluster) (err error
}
// actually create nodes
return errors.UntilErrorConcurrent(createContainerFuncs)
for _, f := range createContainerFuncs {
if err := f(); err != nil {
return err
}
}
return nil
}
// ListClusters is part of the providers.Provider interface