New ๐ŸŒŠ wave for @helm

Commit 96d1c24a

96d1c24a2789Merged

zhilyaev <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified

Description

discard if not debug

Details

Commit
96d1c24a2789
Parent
a255f01344a9

pkg/release/chart.gomodifiedView file

@@ -9,6 +9,7 @@
99 "helm.sh/helm/v3/pkg/chart/loader"
1010 "helm.sh/helm/v3/pkg/downloader"
1111 "helm.sh/helm/v3/pkg/getter"
12+ "io"
1213 "os"
1314 "path/filepath"
1415 )
@@ -60,7 +61,7 @@
6061 func chartDepsUpd(name string) error {
6162 client := action.NewDependency()
6263 man := &downloader.Manager{
63- Out: os.Stdout,
64+ Out: io.Discard,
6465 ChartPath: filepath.Clean(name),
6566 Keyring: client.Keyring,
6667 SkipUpdate: client.SkipRefresh,
@@ -72,5 +73,10 @@
7273 if client.Verify {
7374 man.Verify = downloader.VerifyAlways
7475 }
76+
77+ if helper.Helm.Debug {
78+ man.Out = os.Stdout
79+ }
80+
7581 return man.Update()
7682 }