Repository navigation
Conversation
| docker-binary: GOFLAGS += -a -installsuffix cgo | ||
| docker-binary: | ||
| GOOS=linux GOARCH=amd64 CGO_ENABLED=0 $(GO) build -o $(BINDIR)/tiller $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/tiller | ||
| GOOS=linux GOARCH=$(ARCH) CGO_ENABLED=0 $(GO) build -o $(BINDIR)/tiller $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/tiller |
There was a problem hiding this comment.
Should GOARCH always be host arch when building for docker?
There was a problem hiding this comment.
Yes.. as docker cross building is not supported, we have to be on target host arch to build docker image..
There was a problem hiding this comment.
#4252 (comment) demonstrates that there's a limitation of compiling tiller as arm64, but this PR works around that limitation by using a Dockerfile specifically designed for pcc64le architectures. While nice for ppc64le users, this doesn't address the problem for arm64 or i386 users.
I think we need to make a conditional check for what architecture we are running under (like on line 66), but only allow amd64 and pcc64le, otherwise users compiling tiller on arm64 are going to have a bad time.
I'd follow up with other community members and see if others have found a workable solution that handles this in a generic way.
|
This and #1930 are raising the concern that maybe we need to revisit how the entire canary/release build process is working. The backpressure caused in CI by increasing the build time is having a negative effect on handling regular pull requests (since the build queue keeps getting longer and longer). If we can offload some of the build pressure by making a CI/CD change then we can add things like dockerized builds for lots of platforms, and do so without increasing the build wait time to :45. So let's hold off on merging this and #1929 until after 2.2.0 (so nobody gets distracted in these last few days), and then we can tackle the CI/CD situation without the risk of stalling the Feb. 14 release date. |
|
@technosophos Just circling back to this. Maybe we should talk about the CI/CD stuff in one of the next public standup meetings |
|
Bumping this back to Upcoming - Minor. @technosophos we should have a conversation about whether or not this is possible now |
|
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
|
/remove-lifecycle stale |
|
/lifecycle frozen |
|
Side note, @technosophos we really do need to discuss again if this would be ok to do now. Maybe @adamreese has some thoughts too |
|
Let's bring this up in the next dev call. |
There was a problem hiding this comment.
What kubernetes clusters run on ppc64le architectures? I don't even think kubernetes itself supports running on ppc64le at this point. kubernetes/kubernetes#38067
To be clear, I'm all for enabling all architecture types. I just want to be cautious about adding support for running Helm on alternative chip architectures that kubernetes core is unprepared to support.
|
@mkumatag I see you're working on this upstream. Any idea on a general timeline when upstream should be able to support ppc64le architectures? :) |
kubernetes/kubernetes#38067 issue is ubmrella issue which is pointing to lot of thing. Currently kubernetes is building binaries for most of the architectures and works, you can find bits @ https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.11.md#v1110-alpha1. And even we run tests on ppc64le platform and published in test-grid. |
bacongobbler
left a comment
There was a problem hiding this comment.
It sounds like @alicefr is interested in working on making it possible to add support for various architectures, not just arm64 or ppc64le. It might be good to get in contact with her and see if she's interested in collaborating. :)
| @@ -0,0 +1,21 @@ | |||
| # Copyright 2017 The Kubernetes Authors. | |||
There was a problem hiding this comment.
This header will have to change to "Copyright The Helm Authors" as of #4202.
| docker-binary: GOFLAGS += -a -installsuffix cgo | ||
| docker-binary: | ||
| GOOS=linux GOARCH=amd64 CGO_ENABLED=0 $(GO) build -o $(BINDIR)/tiller $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/tiller | ||
| GOOS=linux GOARCH=$(ARCH) CGO_ENABLED=0 $(GO) build -o $(BINDIR)/tiller $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/tiller |
There was a problem hiding this comment.
#4252 (comment) demonstrates that there's a limitation of compiling tiller as arm64, but this PR works around that limitation by using a Dockerfile specifically designed for pcc64le architectures. While nice for ppc64le users, this doesn't address the problem for arm64 or i386 users.
I think we need to make a conditional check for what architecture we are running under (like on line 66), but only allow amd64 and pcc64le, otherwise users compiling tiller on arm64 are going to have a bad time.
I'd follow up with other community members and see if others have found a workable solution that handles this in a generic way.
|
hi everybody! Please see my answer. I'm interested in participating to the discussion! |
|
closing as irrelevant for Helm 3 as Tiller is being removed, and therefore there's no need to build a ppc64le docker image. Thanks! |
This PR is for supporting docker image for ppc64le platform.