Make QEMU version and flags configurable in image build Makefiles
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- docker
- Domain
- build-system, infrastructure
Research direction
Start by comparing images/build/debian-base/Makefile, images/build/distroless-iptables/Makefile, and images/build/setcap/Makefile, focusing on QEMUVERSION, the QEMU flags in docker run, and ALL_ARCH. Check how each image build target receives variable overrides. Done means all three Makefiles allow callers to customize the QEMU version, flags, and target architectures without editing them.
Written by the indexing model from the issue text.
Description
What would you like to be added:
In images/build/debian-base/Makefile, images/build/distroless-iptables/Makefile, and images/build/setcap/Makefile:
- The QEMU version (
QEMUVERSION) and flags (--reset -p yes) are hardcoded - The
ALL_ARCHvariable uses=(simple assignment) instead of?=(conditional assignment)
This prevents downstream users and CI pipelines from customizing these values without patching the Makefiles.
Why is this needed:
QEMUVERSIONuses=(simple assignment) instead of?=(conditional assignment), so it cannot be overridden via environment variables- The QEMU flags
--reset -p yesare hardcoded in thedocker runcommand, making them impossible to override ALL_ARCHuses=instead of?=, so it cannot be overridden via environment variables- Making these variables conditionally assignable (
?=) allows downstream consumers to customize QEMU behavior and target architectures without modifying the Makefiles
- Dominant language
- Go
- Stars
- 504
- Forks
- 556
- Avg merge
- 18h 43m
- Merged PRs (30d)
- 33
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from kubernetes/release
-
needs-kind needs-priority
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
kubernetes/release#4511 ·
-
needs-kind needs-priority
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
kubernetes/release#4490 · 1 comment ·
-
area/release-eng kind/bug needs-priority sig/release
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
kubernetes/release#4434 · 1 comment ·
-
area/release-eng kind/feature needs-priority sig/release
kubernetes/release#4522 · 5 comments · 1 assignee ·
-
area/dependency area/release-eng kind/feature needs-priority sig/release
kubernetes/release#4520 · 1 assignee ·
All issues in kubernetes/release
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100