OCPBUGS-92080: Adds rendering of enable-multi-network-policy in ovnkube-node - #3084
OCPBUGS-92080: Adds rendering of enable-multi-network-policy in ovnkube-node#3084raphaelvrosa wants to merge 2 commits into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
WalkthroughChangesOVN policy flag forwarding
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant OVNKubernetesConfig
participant ovnkubeNodeScript
participant ovnkube
OVNKubernetesConfig->>ovnkubeNodeScript: render OVN_MULTI_NETWORK_POLICY_ENABLE
ovnkubeNodeScript->>ovnkube: pass --enable-multi-networkpolicy when enabled
Suggested reviewers: Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (5 errors)
✅ Passed checks (19 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@raphaelvrosa: This pull request references Jira Issue OCPBUGS-92080, 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: raphaelvrosa 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 |
|
/jira refresh |
|
@raphaelvrosa: This pull request references Jira Issue OCPBUGS-92080, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (core-networking-bot@redhat.com), skipping review request. 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. |
|
/assign @arghosh93 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pkg/network/ovn_kubernetes_test.go (1)
4038-4078: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover the combined flag case.
The table tests multi-network policy only when reachability is
nil, while every reachability case leaves it disabled. Add one case with both enabled so the test verifies that both arguments survive together in the rendered node command.Proposed test case
{ name: "Enable Multi Network Policy", reachabilityTimeout: nil, expectKubernetesFeatureReachability: false, enableMultiNetworkPolicy: true, }, + { + name: "Enable Multi Network Policy with reachability timeout", + reachabilityTimeout: ptrToUint32(10), + expectKubernetesFeatureReachability: true, + enableMultiNetworkPolicy: true, + },🤖 Prompt for 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. In `@pkg/network/ovn_kubernetes_test.go` around lines 4038 - 4078, Add a table entry in the testCases for the combined configuration, setting both reachabilityTimeout to a non-nil value and enableMultiNetworkPolicy to true, with expectKubernetesFeatureReachability true. Ensure the test execution and assertions verify both flags are preserved together in the rendered node command.
🤖 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.
Nitpick comments:
In `@pkg/network/ovn_kubernetes_test.go`:
- Around line 4038-4078: Add a table entry in the testCases for the combined
configuration, setting both reachabilityTimeout to a non-nil value and
enableMultiNetworkPolicy to true, with expectKubernetesFeatureReachability true.
Ensure the test execution and assertions verify both flags are preserved
together in the rendered node command.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: ba0b9006-3af9-4a8b-be50-163c03be5c83
📒 Files selected for processing (4)
bindata/network/ovn-kubernetes/common/008-script-lib.yamlbindata/network/ovn-kubernetes/managed/004-config.yamlbindata/network/ovn-kubernetes/self-hosted/004-config.yamlpkg/network/ovn_kubernetes_test.go
💤 Files with no reviewable changes (2)
- bindata/network/ovn-kubernetes/self-hosted/004-config.yaml
- bindata/network/ovn-kubernetes/managed/004-config.yaml
Sets the flag `--enable-multi-networkpolicy` to be properly rendered in ovnkube-node config flags when updated by CNO. Modifies unit test to evaluate the rendering of multiple Flags to ovnkube cluster-manager and node. Signed-off-by: Raphael Rosa <raprosa@redhat.com>
|
/retest-required |
|
@raphaelvrosa: 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. |
Sets the flag
--enable-multi-networkpolicyto be properly rendered in ovnkube-node config flags when updated by CNO.Modifies unit test to evaluate the rendering of multiple Flags to ovnkube cluster-manager and node.