From 09af5447d900805f19a25259fa1d6e61063fe9f7 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Wed, 14 Oct 2020 08:55:49 +0800 Subject: [PATCH] Add --skip-refresh option in helm dep build Signed-off-by: yxxhero --- cmd/helm/dependency_build.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/helm/dependency_build.go b/cmd/helm/dependency_build.go index 4e87684ce..a0b63f038 100644 --- a/cmd/helm/dependency_build.go +++ b/cmd/helm/dependency_build.go @@ -58,6 +58,7 @@ func newDependencyBuildCmd(out io.Writer) *cobra.Command { Out: out, ChartPath: chartpath, Keyring: client.Keyring, + SkipUpdate: client.SkipRefresh, Getters: getter.All(settings), RepositoryConfig: settings.RepositoryConfig, RepositoryCache: settings.RepositoryCache, @@ -77,6 +78,7 @@ func newDependencyBuildCmd(out io.Writer) *cobra.Command { f := cmd.Flags() f.BoolVar(&client.Verify, "verify", false, "verify the packages against signatures") f.StringVar(&client.Keyring, "keyring", defaultKeyring(), "keyring containing public keys") + f.BoolVar(&client.SkipRefresh, "skip-refresh", false, "do not refresh the local repository cache") return cmd }