Skip to content

Commit

Permalink
fix deadlock in deploy charts
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Oct 17, 2018
1 parent 60e79af commit be100f4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/utils/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func DeployChartsFromRepository(releasesToInstall []ReleaseSpec, kubeContext, na

for len(releasesToInstall) > 0 {

mutex.Lock()
for _, c := range releasesToInstall {

bwg.Add(1)
Expand Down Expand Up @@ -56,10 +55,8 @@ func DeployChartsFromRepository(releasesToInstall []ReleaseSpec, kubeContext, na
mutex.Lock()
releasesToInstall = RemoveChartFromDependencies(releasesToInstall, c.ChartName)
mutex.Unlock()

}(c)
}
mutex.Unlock()
time.Sleep(5 * time.Second)
}
bwg.Wait()
Expand Down

0 comments on commit be100f4

Please sign in to comment.