OCPBUGS-83863: Simplify Dockerfile.openshift to rhel9-only#285
OCPBUGS-83863: Simplify Dockerfile.openshift to rhel9-only#285sdodson wants to merge 4 commits intoopenshift:mainfrom
Conversation
|
@sdodson: This pull request references Jira Issue OCPBUGS-83863, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughRemoved rhel8/rhel10 builder stages and changed final image to copy rhel9 binaries once and expose rhel9/rhel10 bins as links; removed dynamic OS-version copy logic. Added Go linker flags Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Review rate limit: 9/10 reviews remaining, refill in 6 minutes. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sdodson The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@sdodson: This pull request references Jira Issue OCPBUGS-83863, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
Drop the rhel8 builder stage and versioned subdirectory structure, building only rhel9 binaries directly into /usr/src/multus-cni/bin/. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@sdodson: This pull request references Jira Issue OCPBUGS-83863, which is valid. 3 validation(s) were run on this bug
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. |
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
Add -s -w linker flags to remove the symbol table and DWARF debug info from all built binaries. These are not needed at runtime and stripping them significantly reduces the final image size. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
/hold |
The rhel10 golang builder doesn't exist yet, so the rhel10 stage was just a duplicate of rhel9. Remove it and simplify the runtime to copy rhel9 binaries as the default, with OS detection that prefers a version-specific binary directory when one exists. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@sdodson: This pull request references Jira Issue OCPBUGS-83863, which is valid. 3 validation(s) were run on this bug
The bug has been updated to refer to the pull request using the external bug tracker. 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. |
Replace the runtime OS-detection script with hardlinks that place the same el9 binaries into both rhel9/bin and rhel10/bin directories. This removes the conditional copy logic while still providing version-specific bin paths. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@sdodson: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
Summary
Dockerfile.openshift(rhel8 workers no longer supported as of 4.20)-s -wldflags to reduce image sizeContext
Support for rhel8 workers was removed in 4.20, so rhel8 binaries can be dropped. The rhel10 stage was using the rhel9 golang builder anyway, producing identical binaries. This PR consolidates to a single rhel9 build stage with a flexible runtime layout that can easily accommodate rhel10 when its builder becomes available.
Test plan
/usr/src/multus-cni/bin/in the built imagefilecommand shows binaries are stripped (no debug info)🤖 Generated with Claude Code
Summary by CodeRabbit