-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add multi-platform support for macvtap cni image builds. #127
Add multi-platform support for macvtap cni image builds. #127
Conversation
These changes enable building and pushing macvtap container images for multiple platforms (amd64, s390x, arm64) from a single Dockerfile. Enhanced multi-platform support in the build process by adding a PLATFORMS argument in the Makefile for amd64, s390x, and arm64 architectures. Multi-platform build support is provided for both Docker and Podman container runtimes. Signed-off-by: Ashok Pariya <[email protected]>
Hi @ashokpariya0. Thanks for your PR. I'm waiting for a kubevirt 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. |
cc @oshoval |
lets combine it with #125 and remove please the git actions from there? |
No, Whatever is needed is there in this PR, I plan to verify both the GitHub Actions and make command approaches for multi-platform support in parallel as a follow-up. Can we proceed with this PR for now? |
I am against adding git actions atm, i don't have the capacity to review stuff related for that EDIT will focus on this PR now, understanding it is self contained for prow |
@@ -11,6 +11,7 @@ | |||
source automation/check-patch.setup.sh | |||
cd ${TMP_PROJECT_PATH} | |||
|
|||
export PLATFORMS=all |
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 is bit tricky, because it will run on post submit, so harder to test it
we can just hope for best and do manual tests before that / fix according needs
/lgtm it was tested manually on host amd64, podman for "all" right ? |
Yes, I have tested this on an amd64 machine, where it successfully built multi-architecture images for amd64, arm64, and s390x. Additionally, I have verified that the image builds and works correctly on a s390x machine as well. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ashokpariya0, maiqueb 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 |
Thanks for your effort we would need a tag please so CNAO will consume it |
seems you created a new tag v0.11.2 ? i just see |
Yes, I totally forgot how this repo worked. I'll issue a new release now. |
These changes enable building and pushing macvtap container images for multiple platforms (amd64, s390x, arm64) from a single Dockerfile. Enhanced multi-platform support in the build process by adding a PLATFORMS argument in the Makefile for amd64, s390x, and arm64 architectures. Multi-platform build support is provided for both Docker and Podman container runtimes.
What this PR does / why we need it:
The Macvtap CNI image, available at [quay.io/kubevirt/macvtap-cni](https://quay.io/repository/kubevirt/macvtap-cni?tab=tags&tag=latest), currently supports only the amd64 architecture.
This PR introduces the necessary changes for multi-platform container image building and pushes for the macvtap-cni project, including updates Makefile, and Dockerfile to support building and pushing the image for multiple architectures (amd64, arm64, s390x).
Special notes for your reviewer:
More details Build instruction and variable used is available at: https://gist.github.com/ashokpariya0/0424fb9022887c44b4da5b3f921f3df4
Release note: