Skip to content

Commit 511928d

Browse files
sajalSajal
and
Sajal
authored
Allow passing --kubeconfig flag to diff plugin, fixes #197 (#198)
Co-authored-by: Sajal <[email protected]>
1 parent e186caa commit 511928d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/upgrade.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ func newChartCommand() *cobra.Command {
9090
}
9191

9292
f := cmd.Flags()
93+
var kubeconfig string
94+
f.StringVar(&kubeconfig, "kubeconfig", "", "This flag is ignored, to allow passing of this top level flag to helm")
9395
f.StringVar(&diff.chartVersion, "version", "", "specify the exact chart version to use. If this is not specified, the latest version is used")
9496
f.BoolVar(&diff.detailedExitCode, "detailed-exitcode", false, "return a non-zero exit code when there are changes")
9597
f.BoolP("suppress-secrets", "q", false, "suppress secrets in the output")

0 commit comments

Comments
 (0)