Skip to content

Commit

Permalink
Merge pull request #364 from banzaicloud/arm-helm
Browse files Browse the repository at this point in the history
do not return error if arch is arm64
  • Loading branch information
kristofgyuracz authored Aug 5, 2022
2 parents c4504a3 + 6154d17 commit 23aecba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/cli/command/cluster/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 23aecba

Please sign in to comment.