Skip to content

cnf-tests: Remove metallb-operator submodule and all metallb references#4027

Open
sshnaidm wants to merge 1 commit into
openshift-kni:masterfrom
sshnaidm:nometallb
Open

cnf-tests: Remove metallb-operator submodule and all metallb references#4027
sshnaidm wants to merge 1 commit into
openshift-kni:masterfrom
sshnaidm:nometallb

Conversation

@sshnaidm
Copy link
Copy Markdown
Contributor

@sshnaidm sshnaidm commented May 1, 2026

MetalLB is no longer needed in this repository. This removes the git submodule, feature-configs, test paths, namespace variables, and all related script/documentation references.

@openshift-ci openshift-ci Bot requested review from yanirq and zeeke May 1, 2026 08:09
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 1, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sshnaidm
Once this PR has been reviewed and has the lgtm label, please assign fedepaol for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 1, 2026

📝 Walkthrough

Walkthrough

Removes MetalLB operator support: deletes the git submodule and operator manifests, omits metallb from default FEATURES and build/index flows, updates init and CI scripts, removes MetalLB test namespaces and reporter entries, and updates docs and test infra references.

Changes

Cohort / File(s) Summary
Git & Top-level Build
\.gitmodules, Makefile
Removes cnf-tests/submodules/metallb-operator submodule entry; drops metallb from default FEATURES and removes METALLB_OPERATOR_TARGET_COMMIT default.
Submodule Pointer & Init
cnf-tests/submodules/metallb-operator, cnf-tests/hack/init-git-submodules.sh
Removes recorded submodule commit reference and deletes submodule fetch/checkout steps in init script.
Test Namespaces & Reporter
cnf-tests/testsuites/pkg/namespaces/namespaces.go, cnf-tests/testsuites/pkg/utils/reporter.go
Removes exported MetalLBOperator namespace and its inclusion in reporter's namespaces-to-dump configuration.
Feature Configs (deploy/ci/hypershift)
feature-configs/deploy/metallb/*, feature-configs/ci/metallb/*, feature-configs/hypershift-ci/metallb/*
Deletes MetalLB kustomizations, namespace/operatorgroup manifests, and OLM Subscription resources; removes all MetalLB deployment kustomize entries.
CNF Tests README
cnf-tests/README.md
Removes MetalLB dependency/configuration mentions, allowed EXTERNAL_SUITES option, and Metallb-specific report examples/troubleshooting text.
Hack / CI Scripts
hack/common.sh, hack/run-functests.sh, hack/setup-build-index-image.sh
Removes MetalLB-related env vars (OO_INSTALL_NAMESPACE, FRRK8S_EXTERNAL_NAMESPACE), deletes Metallb test path mappings from TESTS_PATHS, drops BLACKLISTED_TESTS, and omits metallb bundle from index build/push steps.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description is directly related to the changeset, clearly explaining that MetalLB is no longer needed and describing what is being removed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately summarizes the main objective: removing the metallb-operator submodule and all metallb references throughout the repository.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
cnf-tests/README.md (1)

18-29: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix stale env-var count in release guidance.

Line 28 says “all three,” but only two variables are now listed. This is a confusing docs mismatch.

Suggested doc fix
-And to set all three of them to a specfic release, use `TARGET_RELEASE`.
+And to set both of them to a specific release, use `TARGET_RELEASE`.

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cnf-tests/README.md` around lines 18 - 29, The README text incorrectly says
“all three” when only two environment variables
(SRIOV_NETWORK_OPERATOR_TARGET_COMMIT and
CLUSTER_NODE_TUNING_OPERATOR_TARGET_COMMIT) are listed; update the sentence
referencing TARGET_RELEASE to say it sets both of these variables (or “both”
instead of “all three”) and ensure the wording matches the two variable names
shown (e.g., "And to set both of them to a specific release, use
TARGET_RELEASE.").
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@cnf-tests/README.md`:
- Around line 18-29: The README text incorrectly says “all three” when only two
environment variables (SRIOV_NETWORK_OPERATOR_TARGET_COMMIT and
CLUSTER_NODE_TUNING_OPERATOR_TARGET_COMMIT) are listed; update the sentence
referencing TARGET_RELEASE to say it sets both of these variables (or “both”
instead of “all three”) and ensure the wording matches the two variable names
shown (e.g., "And to set both of them to a specific release, use
TARGET_RELEASE.").

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: e77e8907-0fe5-4a66-88cd-aa43b73ea36e

📥 Commits

Reviewing files that changed from the base of the PR and between bccbc8b and e043b7f.

📒 Files selected for processing (18)
  • .gitmodules
  • Makefile
  • cnf-tests/README.md
  • cnf-tests/hack/init-git-submodules.sh
  • cnf-tests/submodules/metallb-operator
  • cnf-tests/testsuites/pkg/namespaces/namespaces.go
  • cnf-tests/testsuites/pkg/utils/reporter.go
  • feature-configs/ci/metallb/kustomization.yaml
  • feature-configs/ci/metallb/operator_subscription.yaml
  • feature-configs/deploy/metallb/kustomization.yaml
  • feature-configs/deploy/metallb/operator_namespace.yaml
  • feature-configs/deploy/metallb/operator_operatorgroup.yaml
  • feature-configs/deploy/metallb/operator_subscription.yaml
  • feature-configs/hypershift-ci/metallb/kustomization.yaml
  • feature-configs/hypershift-ci/metallb/operator_subscription.yaml
  • hack/common.sh
  • hack/run-functests.sh
  • hack/setup-build-index-image.sh
💤 Files with no reviewable changes (13)
  • cnf-tests/testsuites/pkg/namespaces/namespaces.go
  • feature-configs/ci/metallb/operator_subscription.yaml
  • feature-configs/ci/metallb/kustomization.yaml
  • feature-configs/deploy/metallb/kustomization.yaml
  • feature-configs/hypershift-ci/metallb/kustomization.yaml
  • cnf-tests/testsuites/pkg/utils/reporter.go
  • feature-configs/deploy/metallb/operator_operatorgroup.yaml
  • .gitmodules
  • feature-configs/hypershift-ci/metallb/operator_subscription.yaml
  • feature-configs/deploy/metallb/operator_subscription.yaml
  • hack/common.sh
  • feature-configs/deploy/metallb/operator_namespace.yaml
  • cnf-tests/submodules/metallb-operator

MetalLB is no longer needed in this repository. This removes the
git submodule, feature-configs, test paths, namespace variables,
and all related script/documentation references.
@sshnaidm sshnaidm changed the title metallb: Remove metallb-operator submodule and all metallb references cnf-tests: Remove metallb-operator submodule and all metallb references May 1, 2026
@sshnaidm
Copy link
Copy Markdown
Contributor Author

sshnaidm commented May 1, 2026

/retest

@sshnaidm
Copy link
Copy Markdown
Contributor Author

sshnaidm commented May 1, 2026

/cc @fedepaol
/cc @SchSeba

@openshift-ci openshift-ci Bot requested review from SchSeba and fedepaol May 1, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants