Repository navigation
Conversation
stefsuse
left a comment
There was a problem hiding this comment.
I saw this in helm-dev and just wanted to chime in though I am not a maintainer. Overall LGTM, thanks for doing this.
| @@ -3,6 +3,7 @@ IMAGE_PREFIX ?= kubernetes-helm | |||
| SHORT_NAME ?= tiller | |||
| SHORT_NAME_RUDDER ?= rudder | |||
| TARGETS ?= darwin/amd64 linux/amd64 linux/386 linux/arm linux/arm64 linux/ppc64le windows/amd64 | |||
bacongobbler
left a comment
There was a problem hiding this comment.
This will allow users to build cross-arch tiller images from source (which is great!), but would it be possible to hook this up to CI so we can publish these images to gcr.io?
Perhaps we should hold off on this until we've completed the transfer over to the CNCF as they may want us to migrate our assets somewhere else. Any other maintainers have opinions on this?
|
For reference, this is how we build and push the release assets today on a merge to master: https://github.com/kubernetes/helm/blob/4e5139b67c53bc87271e456cbd658c9f448f19d7/.circleci/deploy.sh#L53-L64 |
|
Sure. Update deploy.sh to accept an arg for arch. Then update .circleci.yaml to pass the $arch string at the deploy step (not sure how you do that with circle specifically though). On its own this change won't change the current process but it at least allows for the option. If CNCF decides to host the builds elsewhere they just update deploy.sh? Just my two cents. |
|
@bacongobbler I didn't think to add into circleci. But that also depends how now you want to call your images. With kubernetes style you could append the architecture at the end of the image name or another possibility could be to create a multi-arch image. The advantage of the second approach would be that you do not have to change the name of the tiller image. Would you pack everything in a PR or better a second one? I'm traveling this week and then I will take some vacation. Therefore, the discussion will be a bit slowed down. |
Signed-off-by: Alice Frosi <[email protected]>
Signed-off-by: Alice Frosi <[email protected]>
|
After doing a little research, there appears to be some new (experimental) work available where we can distribute arch-specific images (talks at DockerCon 2017) and then create a manifest list that points to these individual images. That way, The first part would be the easiest to tackle: we start by releasing arch-specific images of tiller like I think taking the approach where we distribute images with the architecture being appended to the end of the image name would be a good first step, and then once the latter features become more stable we can start adding support for that. How do you feel about that approach? |
|
yes it sounds reasonable. I haven't tried the Do you want that I include the modifications at |
|
hi, I just realized that the PR is actually wrong, sorry. It actually cross-compiles the binaries for the different images, but the parent image remains |
Helm already supports cross-compiling and the parent image
alpine:3.7is multi-arch. Therefore, building thetillerimage for other architectures rather than x86_64 is straightforward. The docker images can be builti by usingmake docker-build-imagesI also generalized the building process of a single docker image. The default target architecture remains
amd64. However, another architecture could be set as the target. For example