Skip to content

Commit

Permalink
Added log
Browse files Browse the repository at this point in the history
Signed-off-by: Suleiman Dibirov <[email protected]>
  • Loading branch information
idsulik committed Sep 6, 2024
1 parent 454798b commit 383b26e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/skaffold/deploy/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,14 @@ func (h *Deployer) Deploy(ctx context.Context, out io.Writer, builds []graph.Art
nsMap := map[string]struct{}{}
manifests := manifest.ManifestList{}
g, ctx := errgroup.WithContext(ctx)
if h.Concurrency != nil && *h.Concurrency > 0 {
g.SetLimit(*h.Concurrency)

if h.Concurrency != nil && *h.Concurrency == 1 {
olog.Entry(ctx).Infof("Installing %d releases sequentially", len(h.Releases))
} else {
olog.Entry(ctx).Infof("Installing %d releases concurrently", len(h.Releases))
}
var mu sync2.Mutex

var mu sync2.Mutex
// Deploy every release
for _, r := range h.Releases {
g.Go(func() error {
Expand Down

0 comments on commit 383b26e

Please sign in to comment.