New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always set relevant variables for cross compiling #94403
Conversation
Welcome @bnrjee! |
Hi @bnrjee. Thanks for your PR. I'm waiting for a kubernetes 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. Instructions 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. |
/sig release |
/assign @spiffxp |
/ok-to-test |
1274ed8
to
44f61f2
Compare
Hi @juanvallejo, @SataQiu, |
/assign @BenTheElder |
Hi @BenTheElder, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change does not seem to gel with the motivation comment in the PR body.
If the motivation is being able to override the CC flags, we should just support overriding them instead of altering how they're set to begin with.
I don't think the switch from checking the host platform to checking if KUBE_BUILD_PLATFORMS is set makes sense.
|
Hi @BenTheElder, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove the check for support from the upstream code once it's actually supported to cross build from another platform
the upstream kube-cross / kube build image is only amd64 currently, when that is fixed we can possibly support building from another host.
cc @kubernetes/release-engineering @kubernetes/sig-release |
i'll wait for @BenTheElder to be happy :) |
Based on a patch to Bottlerocket by Ben Cressey <bcressey@amazon.com> https://github.com/bottlerocket-os/bottlerocket/blob/41a72fe21400fa227543fcbed2e59eb0a8b633c1/packages/kubernetes-1.17/0001-always-set-relevant-variables-for-cross-compiling.patch
Based on a patch to Bottlerocket by Ben Cressey <bcressey@amazon.com> https://github.com/bottlerocket-os/bottlerocket/blob/41a72fe21400fa227543fcbed2e59eb0a8b633c1/packages/kubernetes-1.17/0001-always-set-relevant-variables-for-cross-compiling.patch
/test pull-kubernetes-node-e2e |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bnrjee, dims The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
For example, bottlerocket sets customized CC flags for different platforms using this patch. We should be able to override the default values in kubernetes using environment variables or build time flags and build kubernetes with customized gcc variants that bottlerocket uses.
Which issue(s) this PR fixes:
Fixes #94291
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Release note: