Skip to content

Commit

Permalink
fix-concurrent-create-node
Browse files Browse the repository at this point in the history
  • Loading branch information
yankay committed Apr 3, 2024
1 parent 506824a commit ec6c8ca
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/cluster/internal/providers/nerdctl/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,13 @@ func (p *provider) Provision(status *cli.Status, cfg *config.Cluster) (err error
return err
}

// actually create nodes
return errors.UntilErrorConcurrent(createContainerFuncs)
for _, f := range createContainerFuncs {
err = f()
if err != nil {
return err
}
}
return nil
}

// ListClusters is part of the providers.Provider interface
Expand Down

0 comments on commit ec6c8ca

Please sign in to comment.