New ๐ŸŒŠ wave for @helm

Commit 390292d7

390292d7127cMerged

Dmitrii Zhiliaev <[email protected]> ยท 1 year ago ยท 1 file ยท ~1 modified

Description

Merge pull request #1135 from alexchspb/bugfix/concurrent-map-writes-for-toDeleteMap

Fix concurrent map writes for toDeleteMap

Details

Commit
390292d7127c
Parent
8a491dff214a
Merge parent
47c8619aa4eb

pkg/release/values.gomodifiedView file

@@ -222,6 +222,7 @@
222222 }
223223
224224 func (rel *config) BuildValues(ctx context.Context, dir, templater string) error {
225+ var mu sync.Mutex
225226 vals := rel.Values()
226227
227228 wg := parallel.NewWaitGroup()
@@ -248,7 +249,9 @@
248249 switch {
249250 case !v.Strict && errors.Is(ErrValuesNotExist, err):
250251 l.WithError(err).Warn("skipping values...")
252+ mu.Lock()
251253 toDeleteMap[v] = true
254+ mu.Unlock()
252255 case err != nil:
253256 l.WithError(err).Error("failed to build values")
254257