From 76c6c8ff5100da4da685df1e7d107c2eb615522d Mon Sep 17 00:00:00 2001 From: Sajal Date: Tue, 31 Mar 2020 10:46:33 +0700 Subject: [PATCH] Allow passing --kubeconfig flag to diff plugin, fixes #197 --- cmd/upgrade.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/upgrade.go b/cmd/upgrade.go index 1956b97b..e7c004b3 100644 --- a/cmd/upgrade.go +++ b/cmd/upgrade.go @@ -80,6 +80,8 @@ func newChartCommand() *cobra.Command { } f := cmd.Flags() + var kubeconfig string + f.StringVar(&kubeconfig, "kubeconfig", "", "This flag is ignored, to allow passing of this top level flag to helm") f.StringVar(&diff.chartVersion, "version", "", "specify the exact chart version to use. If this is not specified, the latest version is used") f.BoolVar(&diff.detailedExitCode, "detailed-exitcode", false, "return a non-zero exit code when there are changes") f.BoolP("suppress-secrets", "q", false, "suppress secrets in the output")