From 6154d17fe6c0d7098704d878903944e3e0256fc9 Mon Sep 17 00:00:00 2001 From: Kristof Gyuracz Date: Fri, 5 Aug 2022 15:28:27 +0200 Subject: [PATCH] do not return error if arch is arm64 --- internal/cli/command/cluster/helm.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/cli/command/cluster/helm.go b/internal/cli/command/cluster/helm.go index 47fedc3b..512bef69 100644 --- a/internal/cli/command/cluster/helm.go +++ b/internal/cli/command/cluster/helm.go @@ -256,14 +256,11 @@ func getHelmBinary(version string, banzaiCli cli.Cli) (string, error) { return "", errors.WrapIff(err, "failed to create %q directory", bindir) } - url := fmt.Sprintf("https://get.helm.sh/helm-%s-%s-amd64.tar.gz", version, runtime.GOOS) + url := fmt.Sprintf("https://get.helm.sh/helm-%s-%s-%s.tar.gz", version, runtime.GOOS, runtime.GOARCH) name := filepath.Join(bindir, fmt.Sprintf("helm-%s", version)) if _, err := os.Stat(name); err != nil { log.Infof("Downloading helm %s...", version) - if runtime.GOARCH != "amd64" { - return "", errors.Errorf("unsupported architecture: %v", runtime.GOARCH) - } if err := writeHelm(url, name); err != nil { return "", errors.WrapIf(err, "failed to download helm client") }