Adding s390x cross build support#73
Conversation
|
@srajmane: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: srajmane The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @srajmane! |
|
Hi @srajmane. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/check-cla |
|
/ok-to-test |
|
/assign @pohly |
|
The change itself looks good, I'm just wondering whether should continue to add special build rules like this for different target architectures. Should we just add them for now when people ask for it, or should we stop and try to find a more generic approach, in particular one which then also covers building and publishing of images? As I don't have the answers for those problems, I myself lean towards simply merging this. |
|
@pohly Thanks for your comments. Yes we are also planning to work on generic images, however for now, adding above would be helpful. |
| if [ "$(ARCH)" = "amd64" ]; then \ | ||
| CGO_ENABLED=0 GOOS=windows go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$*.exe ./cmd/$* ; \ | ||
| CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$*-ppc64le ./cmd/$* ; \ | ||
| CGO_ENABLED=0 GOOS=linux GOARCH=s390x go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$*-s390x ./cmd/$* ; \ |
There was a problem hiding this comment.
Instead of forcing all developers to build for all of these architectures, let's try something else:
- by default, build without overriding GOOS and GOARCH
- add some way (env vars?!) of enabling the building of some other versions of the binaries
- enable that building in the CI (= prow.sh)
Let me try to come up with such a solution.
|
@srajmane: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Closing in favor of #76 |
Adding cross build binary support for s390x.