-
Notifications
You must be signed in to change notification settings - Fork 276
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
chore: integrate binary build in windows dockerfile #7836
base: master
Are you sure you want to change the base?
chore: integrate binary build in windows dockerfile #7836
Conversation
Hi @mainred. Thanks for your PR. I'm waiting for a kubernetes-sigs 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-sigs/prow repository. |
/ok-to-test |
/kind testing |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, mainred 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 |
do we need to make similar changes to azure disk & file CSI driver repos? |
@andyzhangx we may need to hold this PR because MCR pipelines relies on building the binary out of the dockerfile to sign the binary. |
We can merge this PR after we migrating image building pipeline to Dalec since Dalec does not rely on dockerfile to build the image. |
/hold |
New changes are detected. LGTM label has been removed. |
@feiskyer @andyzhangx , we now support building windows binary from local env or in the dockerfile, and after this PR is merged, we can update the mcr pipeline to turn on local build. |
What type of PR is this?
What this PR does / why we need it:
This change is originated from the image build failure, which fails to recognize the godebug directive in go.mod because the lower version of local golang version. While linux docker images are built successfully because we build the binary the in linux dockerfile, the build environment is the same one defined in go.mod. We want to apply the method in windows docker image build as well. Since windows binary can be treated differently for security reason, we support building windows binary locally optionally, and by default, we use non-local windows binary by building the binary in a build stage in the dockerfile.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: