NO-JIRA: align control-plane Dockerfile builder image with main Dockerfile - #9138
Conversation
…ckerfile Switch Dockerfile.control-plane FROM line to use the openshift/release base image, which has proper arm64 manifest support, fixing exec format errors on arm64 builds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Skipping CI for Draft Pull Request. |
📝 WalkthroughWalkthroughThe control-plane Dockerfile’s builder stage now uses 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Dockerfile.control-plane`:
- Line 1: Add a supported non-root USER directive, such as UID 1001, in the
runtime stage before ENTRYPOINT. Ensure the final container image does not
default to root while leaving the builder stage unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Pro Plus
Run ID: 5acafbe7-e67d-440c-b3af-7d48f0e0dc78
📒 Files selected for processing (1)
Dockerfile.control-plane
|
/area ci-tooling |
|
/retitle NO-JIRA: align control-plane Dockerfile builder image with main Dockerfile |
|
@redhat-chai-bot: This pull request explicitly references no jira issue. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/label acknowledge-critical-fixes-only |
|
/ok-to-test |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9138 +/- ##
=======================================
Coverage 44.56% 44.56%
=======================================
Files 774 774
Lines 97003 97003
=======================================
Hits 43228 43228
Misses 50783 50783
Partials 2992 2992
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
/test images |
|
/lgtm |
|
Scheduling tests matching the |
|
/verified by e2e |
|
/approve |
|
@jparrill: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng, jparrill, redhat-chai-bot The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
Align the builder base image in
Dockerfile.control-planewith the one used in the mainDockerfileto fix arm64 build failures.Details
The
Dockerfile.control-plane(which builds thehypershiftimage) was usingregistry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.23as its builder stage base image. This image lacks a proper arm64 manifest, causing all arm64 builds to fail with:The main
Dockerfile(which buildshypershift-operator) usesregistry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.25-openshift-4.23, which has working multi-arch support including arm64.This PR aligns
Dockerfile.control-planeto use the same builder image, fixing the arm64 build failures that are blocking all e2e CI jobs.Change
Dockerfile.control-plane: Change builder FROM image fromocp/builder:rhel-9-golang-1.25-openshift-4.23toopenshift/release:rhel-9-release-golang-1.25-openshift-4.23@csrwng requested in Slack thread
Summary by CodeRabbit