OCPBUGS-77762: Add an e2e to check the default network polocy#1334
Conversation
|
@hongkailiu: This pull request references Jira Issue OCPBUGS-77762, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: 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: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughA new test case is added to verify that the Cluster Version Operator has a default-deny NetworkPolicy. The change includes both a test case entry in the manifest file and the corresponding test implementation in the Go test file. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 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 |
wking
left a comment
There was a problem hiding this comment.
Hooray, detection works in `e2e-agnostic-ovn:
: [Jira:"Cluster Version Operator"] cluster-version-operator should have a network policy expand_less 0s
{ fail [github.com/openshift/cluster-version-operator/test/cvo/cvo.go:70]: Failed to get the default network policy
Unexpected error:
<*errors.StatusError | 0xc000616140>:
networkpolicies.networking.k8s.io "default-deny" not found
{
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {
SelfLink: "",
ResourceVersion: "",
Continue: "",
RemainingItemCount: nil,
},
Status: "Failure",
Message: "networkpolicies.networking.k8s.io \"default-deny\" not found",
Reason: "NotFound",
Details: {
Name: "default-deny",
Group: "networking.k8s.io",
Kind: "networkpolicies",
UID: "",
Causes: nil,
RetryAfterSeconds: 0,
},
Code: 404,
},
}
occurred}
/lgtm
/verified by e2e-agnostic-ovn
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hongkailiu, wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest-required /hold cancel |
|
/retest-required |
|
/test e2e-agnostic-ovn-techpreview-serial |
|
/override ci/prow/e2e-agnostic-ovn-techpreview-serial probably needs to be sharded into two jobs. |
|
@wking: Overrode contexts on behalf of wking: ci/prow/e2e-agnostic-ovn-techpreview-serial 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 kubernetes-sigs/prow repository. |
|
It adds a new case. /verified by @hongkailiu |
|
@hongkailiu: This PR has been marked as verified by 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. |
|
Still not worried about that test vs. this pull. /override ci/prow/e2e-agnostic-ovn-techpreview-serial |
|
@wking: Overrode contexts on behalf of wking: ci/prow/e2e-agnostic-ovn-techpreview-serial 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 kubernetes-sigs/prow repository. |
|
HyperShift NodePool timeout is unrelated to this pull's CVO e2e change. /override ci/prow/e2e-hypershift |
|
@wking: Overrode contexts on behalf of wking: ci/prow/e2e-hypershift 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 kubernetes-sigs/prow repository. |
|
@hongkailiu: all tests passed! 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. |
|
@hongkailiu: Jira Issue Verification Checks: Jira Issue OCPBUGS-77762 Jira Issue OCPBUGS-77762 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 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. |
|
Fix included in accepted release 4.22.0-0.nightly-2026-03-07-091925 |
/hold
Wait for #1333
Summary by CodeRabbit