From c506caa33fdd897b36066b1b77749c3e72c8b7bd Mon Sep 17 00:00:00 2001 From: yxxhero Date: Sun, 9 Nov 2025 09:18:45 +0800 Subject: [PATCH] remove --client Signed-off-by: yxxhero --- pkg/helmexec/exec.go | 2 +- pkg/helmexec/exec_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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