Skip to content

Commit 6154d17

Browse files
do not return error if arch is arm64
1 parent c4504a3 commit 6154d17

File tree

1 file changed

+1
-4
lines changed
  • internal/cli/command/cluster

1 file changed

+1
-4
lines changed

internal/cli/command/cluster/helm.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,11 @@ func getHelmBinary(version string, banzaiCli cli.Cli) (string, error) {
256256
return "", errors.WrapIff(err, "failed to create %q directory", bindir)
257257
}
258258

259-
url := fmt.Sprintf("https://get.helm.sh/helm-%s-%s-amd64.tar.gz", version, runtime.GOOS)
259+
url := fmt.Sprintf("https://get.helm.sh/helm-%s-%s-%s.tar.gz", version, runtime.GOOS, runtime.GOARCH)
260260
name := filepath.Join(bindir, fmt.Sprintf("helm-%s", version))
261261

262262
if _, err := os.Stat(name); err != nil {
263263
log.Infof("Downloading helm %s...", version)
264-
if runtime.GOARCH != "amd64" {
265-
return "", errors.Errorf("unsupported architecture: %v", runtime.GOARCH)
266-
}
267264
if err := writeHelm(url, name); err != nil {
268265
return "", errors.WrapIf(err, "failed to download helm client")
269266
}

0 commit comments

Comments
 (0)