-
Notifications
You must be signed in to change notification settings - Fork 362
Split Makefile targets for native and multiarch builds #5414
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
base: main
Are you sure you want to change the base?
Split Makefile targets for native and multiarch builds #5414
Conversation
- Added image-build for multiarch (s390x, ppc64le) - Added kind-image-build for native builds using host platform
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: carterpewpew The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @carterpewpew! |
Hi @carterpewpew. 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. |
✅ Deploy Preview for kubernetes-sigs-kueue ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
/ok-to-test |
.PHONY: image-build-multiarch | ||
image-build-multiarch: | ||
$(IMAGE_BUILD_CMD) -t $(IMAGE_TAG) \ | ||
--platform=$(MULTIARCH_PLATFORMS) \ | ||
--build-arg BASE_IMAGE=$(BASE_IMAGE) \ | ||
--build-arg BUILDER_IMAGE=$(BUILDER_IMAGE) \ | ||
--build-arg CGO_ENABLED=$(CGO_ENABLED) \ | ||
--build-arg GIT_TAG=$(GIT_TAG) \ | ||
--build-arg GIT_COMMIT=$(GIT_COMMIT) \ | ||
$(PUSH) \ | ||
$(IMAGE_BUILD_EXTRA_OPTS) ./ | ||
|
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.
The only change I can see is the PLATFORMS variable. Is this command enough?
make image-build PLATFORMS=linux/s390x,linux/ppc64le
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.
I fully agree with you. I don't think we should have a separate make target.
We can just specify the PLATFORMS in CI configurations.
/release-note-none |
/kind feature
What this PR does / why we need it:
This PR introduces support for building multi-architecture images (e.g.,
s390x
,ppc64le
) for the Kueue project.make image-build
target to support multiarch builds using Docker Buildxkind-image-build
target for building native platform imagesWhich issue(s) this PR fixes:
Fixes #5166
Special notes for your reviewer:
Makefile changes only.
Does this PR introduce a user-facing change?