OCPBUGS-83863: Simplify Dockerfile to rhel9-only build#285
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. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughRemoved rhel8/rhel10 builder stages; final image now uses only rhel9 builder outputs copied into /usr/src/multus-cni/bin and no longer performs OS-release-based binary selection. Added Go linker flags ChangesOpenShift Dockerfile & Build
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. |
|
@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 |
|
/hold |
|
@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. |
Drop OS detection and version-specific directory probing from both cnibincopy scripts (multus.yaml and 008-script-lib.yaml) entirely. multus.yaml: - Consolidate RHEL8_SOURCE_DIRECTORY, RHEL9_SOURCE_DIRECTORY, and DEFAULT_SOURCE_DIRECTORY env vars into a single SOURCE_DIRECTORY - Remove os-release host volume mount from all cnibincopy init containers and the multus DaemonSet - Binaries are now copied directly from the default paths (e.g. /usr/src/multus-cni/bin/, /bondcni/, /usr/src/plugins/bin/) 008-script-lib.yaml (OVN): - Remove os-release sourcing and RHEL version case statements - Copy ovn-k8s-cni-overlay directly from /usr/libexec/cni/ This unblocks removing rhel8 build stages from upstream images (openshift/ovn-kubernetes#3149, openshift/multus-cni#285). By the time version-specific paths would be needed again (RHEL 11+), all in-cluster components will use native FIPS, making this logic permanently unnecessary. rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
…bin directories The version-specific binary directories (rhel8/, rhel9/, rhel10/) are no longer needed since cluster-network-operator#2967 removed the OS detection logic from cnibincopy and now uses a single SOURCE_DIRECTORY. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
|
/retest-required |
|
@sdodson: The following test 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. |
Drop OS detection and version-specific directory probing from both cnibincopy scripts (multus.yaml and 008-script-lib.yaml) entirely. multus.yaml: - Consolidate RHEL8_SOURCE_DIRECTORY, RHEL9_SOURCE_DIRECTORY, and DEFAULT_SOURCE_DIRECTORY env vars into a single SOURCE_DIRECTORY - Remove os-release host volume mount from all cnibincopy init containers and the multus DaemonSet - Binaries are now copied directly from the default paths (e.g. /usr/src/multus-cni/bin/, /bondcni/, /usr/src/plugins/bin/) 008-script-lib.yaml (OVN): - Remove os-release sourcing and RHEL version case statements - Copy ovn-k8s-cni-overlay directly from /usr/libexec/cni/ This unblocks removing rhel8 build stages from upstream images (openshift/ovn-kubernetes#3149, openshift/multus-cni#285). By the time version-specific paths would be needed again (RHEL 11+), all in-cluster components will use native FIPS, making this logic permanently unnecessary. rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
Drop OS detection and version-specific directory probing from both cnibincopy scripts (multus.yaml and 008-script-lib.yaml) entirely. multus.yaml: - Consolidate RHEL8_SOURCE_DIRECTORY, RHEL9_SOURCE_DIRECTORY, and DEFAULT_SOURCE_DIRECTORY env vars into a single SOURCE_DIRECTORY - Remove os-release host volume mount from all cnibincopy init containers and the multus DaemonSet - Binaries are now copied directly from the default paths (e.g. /usr/src/multus-cni/bin/, /bondcni/, /usr/src/plugins/bin/) 008-script-lib.yaml (OVN): - Remove os-release sourcing and RHEL version case statements - Copy ovn-k8s-cni-overlay directly from /usr/libexec/cni/ This unblocks removing rhel8 build stages from upstream images (openshift/ovn-kubernetes#3149, openshift/multus-cni#285). By the time version-specific paths would be needed again (RHEL 11+), all in-cluster components will use native FIPS, making this logic permanently unnecessary. rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
|
/retest-required |
|
/hold cancel |
|
/test e2e-aws e2e-aws-upgrade iamges verify-deps okd-scos-images |
1 similar comment
|
/test e2e-aws e2e-aws-upgrade iamges verify-deps okd-scos-images |
Remove the rhel8 and rhel10 build stages, strip debug symbols from binaries.
The rhel9/rhel10 version-specific subdirectories are no longer needed
since openshift/cluster-network-operator#2967 removed the OS detection
logic and now copies binaries directly from the base directory.
Summary by CodeRabbit