-
Notifications
You must be signed in to change notification settings - Fork 505
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
Fix non-amd64 arch config for debian images #1839
Conversation
Welcome @sozercan! |
Hi @sozercan. 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. |
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.
/ok-to-test
@@ -92,10 +92,15 @@ else | |||
endif | |||
mv $(TEMP_DIR)/$(CONFIG)/Dockerfile.build.tmp $(TEMP_DIR)/$(CONFIG)/Dockerfile.build | |||
|
|||
docker build --pull -t $(BUILD_IMAGE) -f $(TEMP_DIR)/$(CONFIG)/Dockerfile.build $(TEMP_DIR)/$(CONFIG) | |||
docker buildx build \ |
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.
We may run into issues here with pulling the base image when using buildkit and gcr mirror (see kubernetes/kubernetes#97982 for more info)
Hey @sozercan, thank you for the contribution of this fix! 🙏 So, I don't think that we need to use buildkit here. We could stick to a Going one step back, it also looks like that the base image for debian-iptables aka debian-base has exactly the same issue, which may be the reason that the created manifest just points to one architecture (
I think we should start fixing the debian-base image before 🙃 Edit: We're building the debian-base images from scratch, which means that the mentioned Referencing discussion: https://kubernetes.slack.com/archives/CJH2GBF7Y/p1610548545313800 |
@hasheddan @saschagrunert do we want to bump priority on review for this one? |
@sozercan did you had a chance to verify that your changes work even with a "wrong" debian-base? If so then we could conclude on using buildkit for both images and merge this one. |
@saschagrunert yes, if it's built with
|
/lgtm I'll work on image updates in a follow-up. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justaugustus, sozercan 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 |
Revert "Merge pull request #1839 from sozercan/fix-arch"
What type of PR is this?
/kind bug
What this PR does / why we need it:
Non-AMD64 debian images are not marked correct arch in image config. Looks like they are just build as amd64 images with manifest list pointing to different architectures.
To verify:
This causes an issue with building Kubernetes with Docker v20.10.
image with reference k8s.gcr.io/build-image/debian-iptables:buster-v1.3.0 was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64
docker/for-linux#1170
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
cc @justaugustus