diff --git a/pkg/helmexec/exec.go b/pkg/helmexec/exec.go index 37b5c3ae..08001a4f 100644 --- a/pkg/helmexec/exec.go +++ b/pkg/helmexec/exec.go @@ -91,7 +91,7 @@ func parseHelmVersion(versionStr string) (*semver.Version, error) { func GetHelmVersion(helmBinary string, runner Runner) (*semver.Version, error) { // Autodetect from `helm version` - outBytes, err := runner.Execute(helmBinary, []string{"version", "--client", "--short"}, nil, false) + outBytes, err := runner.Execute(helmBinary, []string{"version", "--short"}, nil, false) if err != nil { return nil, fmt.Errorf("error determining helm version: %w", err) } diff --git a/pkg/helmexec/exec_test.go b/pkg/helmexec/exec_test.go index 3c4ebfff..045d9248 100644 --- a/pkg/helmexec/exec_test.go +++ b/pkg/helmexec/exec_test.go @@ -30,7 +30,7 @@ func (mock *mockRunner) ExecuteStdIn(cmd string, args []string, env map[string]s } func (mock *mockRunner) Execute(cmd string, args []string, env map[string]string, enableLiveOutput bool) ([]byte, error) { - if len(mock.output) == 0 && strings.Join(args, " ") == "version --client --short" { + if len(mock.output) == 0 && strings.Join(args, " ") == "version --short" { return []byte("v3.2.4+ge29ce2a"), nil } return mock.output, mock.err