New ๐ŸŒŠ wave for @helm

Commit 0841e7a5

0841e7a512faMerged

Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 1 file ยท ~1 modified

Description

feat: move parallel limit log into getParallelLimit()

Signed-off-by: Dmitriy Zhilyaev [email protected]

Details

Commit
0841e7a512fa
Parent
898eb8032b82

pkg/plan/up.gomodifiedView file

@@ -188,6 +188,13 @@
188188 parallelLimit = len(releases)
189189 }
190190
191+ const msg = "Releases limited parallelization"
192+ if parallelLimit == len(releases) {
193+ log.WithField("limit", parallelLimit).Debug(msg)
194+ } else {
195+ log.WithField("limit", parallelLimit).Info(msg)
196+ }
197+
191198 return parallelLimit
192199 }
193200
@@ -216,13 +223,6 @@
216223 }
217224
218225 parallelLimit := getParallelLimit(ctx, p.body.Releases)
219-
220- const msg = "Deploying releases with limited parallelization"
221- if parallelLimit == len(p.body.Releases) {
222- log.WithField("limit", parallelLimit).Debug(msg)
223- } else {
224- log.WithField("limit", parallelLimit).Info(msg)
225- }
226226
227227 monitorsLockMap := p.body.generateMonitorsLockMap()
228228 monitorsCtx, monitorsCancel := context.WithCancel(ctx)