Skip to content

[release-1.35] fix: use native platform for Dockerfile builder stage to avoid QEMU arm64 failures#3164

Merged
k8s-ci-robot merged 2 commits into
kubernetes-sigs:release-1.35from
k8s-infra-cherrypick-robot:cherry-pick-3157-to-release-1.35
May 19, 2026
Merged

[release-1.35] fix: use native platform for Dockerfile builder stage to avoid QEMU arm64 failures#3164
k8s-ci-robot merged 2 commits into
kubernetes-sigs:release-1.35from
k8s-infra-cherrypick-robot:cherry-pick-3157-to-release-1.35

Conversation

@k8s-infra-cherrypick-robot
Copy link
Copy Markdown

This is an automated cherry-pick of #3157

/assign andyzhangx

NONE

The builder stage only needs to download azcopy binaries and the
Microsoft apt repo deb. Running apt install under QEMU emulation
for arm64 intermittently fails with 'Exec format error' when
binfmt registration is unstable in CI Docker-in-Docker environments.

By using --platform=$BUILDPLATFORM, the builder always runs natively
(amd64) and downloads the correct arch-specific azcopy binary via
TARGETARCH, eliminating the QEMU dependency for this stage.
Give TARGETARCH a default of 'amd64' so the azcopy download URL
is always valid even when not running under BuildKit/buildx.
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 19, 2026
@k8s-ci-robot k8s-ci-robot requested review from cvvz and gnufied May 19, 2026 02:34
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 19, 2026
Copy link
Copy Markdown
Member

@andyzhangx andyzhangx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 19, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx, k8s-infra-cherrypick-robot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 19, 2026
@k8s-ci-robot k8s-ci-robot merged commit c72b514 into kubernetes-sigs:release-1.35 May 19, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants