Skip to content

Add support for arm64 - #4252

Closed
lubinsz wants to merge 1 commit into
helm:masterfrom
lubinsz:master
Closed

lubinsz wants to merge 1 commit into
helm:masterfrom
lubinsz:master

Conversation

@lubinsz

@lubinsz lubinsz commented Jun 21, 2018

Copy link
Copy Markdown

Signed-off-by: Bin Lu [email protected]

Signed-off-by: Bin Lu <[email protected]>
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 21, 2018
@alicefr

alicefr commented Jul 2, 2018 •

Copy link
Copy Markdown

It actually allows the building for various architectures not only arm64. Are you sure that you want to allow to set the architecture with the go variables? I opened a similar PR, but it is actually wrong (my second commit) and you may have the same issue. If you set the GOARCH=arm64 it correctly cross-compiles the binaries but it copies into an x86_64 image. Currently, the only way to obtain the helm images for other architectures is to build the docker image on the native architecture. My PR has the same problem. Therefore, it is risky to let the user set the GOARCH environmental variable. It is probably more safe to evaluate the architecture with shell uname -m

@alicefr

alicefr commented Jul 11, 2018

Copy link
Copy Markdown

@lubinsz You could use HOST_GOARCH instead of GOARCH

@alicefr

alicefr commented Jul 30, 2018

Copy link
Copy Markdown

@lubinsz Do you plan to submit the PR? I'm also interested in the modification for s390x. Otherwise, I'll modify my PR, but it'd pretty similar to yours

@bacongobbler

Copy link
Copy Markdown
Member

@alicefr if you feel like submitting a new PR that addresses the limitation, I'd be really happy to see it!

In case you missed it, there's another PR trying to get ppc64le support for tiller in #1930 that might be relevant to take a look at. Basically that PR flips a conditional flag to use an alternative Dockerfile. That might be a workable solution if we can make it work for supported architecture types (and having amd64 as the default, of course 😃).

@bacongobbler

Copy link
Copy Markdown
Member

closing this PR as stale/won't get merged as-is based on the discussion in this thread. Please feel free to re-open if things change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants