Add printer columns to PodNetworkConnectivityCheck CRD - #2977
Add printer columns to PodNetworkConnectivityCheck CRD#2977swshende-cmd wants to merge 1 commit into
Conversation
Previously, `oc get podnetworkconnectivitychecks` only displayed NAME and AGE columns, requiring users to inspect YAML output or use complex jsonpath queries to determine connectivity check status. This adds three additionalPrinterColumns to the CRD: - Target Endpoint: shows the endpoint being checked (.spec.targetEndpoint) - Reachable: shows the reachability status (True/False from conditions) - Since: shows when the status last changed (date type) This follows the same pattern used by ClusterOperator, ClusterVersion, and Route CRDs in this repository. Fixes: https://redhat.atlassian.net/browse/RFE-5093 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
|
Hello @swshende-cmd! Some important instructions when contributing to openshift/api: |
|
Hi @swshende-cmd. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded three Kubernetes print columns to 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)Error: build linters: unable to load custom analyzer "kubeapilinter": tools/_output/bin/kube-api-linter.so, plugin: not implemented 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. Comment |
|
Hi Reviewers, First of All, sorry if I have missed any workflow here: I was going through some back log cases and jiras and found this where I thought i can contribute, seems this was not a lot of change and surely adds value for customers in our product, I have gone ahead, implemented and tested this and would need your review for PR. Implementation Summary Before implementation (only NAME + AGE) After implementation (with Target Endpoint, Reachable, Since) Impact Happy to have all the suggestions and feedback! Thank you. |
Summary
additionalPrinterColumnsto thePodNetworkConnectivityCheckCRD so thatoc get podnetworkconnectivitychecksdisplays useful status information at a glanceFixes: https://redhat.atlassian.net/browse/RFE-5093
Before
After
Implementation
Added 3
+kubebuilder:printcolumnannotations toPodNetworkConnectivityChecktype inoperatorcontrolplane/v1alpha1/types_conditioncheck.go:This follows the same pattern used by
ClusterOperator,ClusterVersion, andRouteCRDs.Test Plan
oc get podnetworkconnectivitychecks -Ashows all 3 new columns-o jsonand-o yamloutput unchanged-o wideworks correctlymake update(withPROTO_OPTIONAL=1) — code generation passesMade with Cursor