OCPBUGS-83863: Remove RHEL 8 binary build from Dockerfile#3149
OCPBUGS-83863: Remove RHEL 8 binary build from Dockerfile#3149sdodson wants to merge 4 commits intoopenshift:masterfrom
Conversation
|
@sdodson: This pull request references Jira Issue OCPBUGS-83870, which is valid. The bug has been moved to the POST state. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughRemoved the RHEL‑8 build stage and RHEL‑8 artifact copies from the Dockerfile; final image is produced from the RHEL‑9 builder and now creates Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@sdodson: This pull request references Jira Issue OCPBUGS-83870, 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. |
|
[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-83868, 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. |
|
@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. |
|
/hold |
RHEL 8 nodes are no longer supported. Remove the rhel8 build stage
and all version-specific binary copies from the container image.
The default binary at /usr/libexec/cni/ovn-k8s-cni-overlay is built
with the rhel9 toolchain. Future RHEL versions can add override
binaries in /usr/libexec/cni/rhel{10,11}/ subdirectories.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove the conditional that excluded ovnkube from LDFLAGS so that strip flags like -w -s apply uniformly to all built binaries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pass LDFLAGS="-w -s" to strip symbol tables and DWARF debug info from all binaries, reducing the final image size. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Create /usr/libexec/cni/rhel9/ and /usr/libexec/cni/rhel10/ directories with hard links to the single ovn-k8s-cni-overlay binary so the CNO's ovnkube-node container startup script can locate the correct binary for each RHEL version. RHEL 10 reuses the RHEL 9 binary until a separate build is needed. 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
rhel8multi-stage build that compiled a second set of binaries with the RHEL 8 Go toolchain/usr/libexec/cni/rhel8/ovn-k8s-cni-overlay,/usr/lib/rhel8/ovnkube-trace) from the final image-w -sLDFLAGS to all binary builds (including ovnkube) to strip debug info and reduce image size/usr/libexec/cni/rhel9/and/usr/libexec/cni/rhel10/directories with hard links to the singleovn-k8s-cni-overlaybinary so the CNO's ovnkube-node startup script can find the right binary for each RHEL versionTest plan
/usr/libexec/cni/rhel9//usr/libexec/cni/rhel10/🤖 Generated with Claude Code
Summary by CodeRabbit