Skip to content

Commit

Permalink
using no concrrent create container with nerdctl
Browse files Browse the repository at this point in the history
Signed-off-by: Kay Yan <[email protected]>
  • Loading branch information
yankay committed Apr 3, 2024
1 parent 506824a commit a73cd97
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/cluster/internal/providers/nerdctl/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a73cd97

Please sign in to comment.