Repository navigation
fix(cli): print a GVK as group/version/Kind - #422
Conversation
apimachinery renders a GVK as "group/version, Kind=Kind", which reads as a Go struct dump. The CLI now prints group/version/Kind, the apiVersion a manifest carries followed by its kind, wherever it names a type: resolver errors, the collision warning, the no-definition error and the definitions --group/--kind miss. The kli validate success line labels it "GVK:" instead of "maps". The gvk field of the describe -o json no-definition payload changes format with it. Part of dsx-ai-factory#411 Signed-off-by: Roee Gil <roee.gil@run.ai>
The core group is the empty string, so a kind-only definitions filter in it rendered as "/Pod" in the no-match message. It now renders the kind alone. Part of dsx-ai-factory#411 Signed-off-by: Roee Gil <roee.gil@run.ai>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (9)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe CLI now formats GVK values as slash-separated group, version, and kind strings in resolver errors, filter descriptions, validation output, missing-definition output, and collision warnings. Core-group formatting omits the group. ChangesGVK formatting
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The CLI output changes follow the stated GVK-formatting intent, and no concrete merge-blocking regression is established. The JSON field’s format change is documented for script users. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Closed for now while this goes through review in the fork (rogirun#1). It will be reopened, or a new PR opened, when that review is done. |
|
Reopened: reviewed and merged in the fork as rogirun#1. Same two commits, ready to land upstream. |
What does this PR do?
The CLI printed a GVK the way apimachinery renders it,
kubeflow.org/v1, Kind=PyTorchJob, which reads as a Go struct dump. It now printsgroup/version/Kind, for examplekubeflow.org/v1/PyTorchJob, andv1/Podfor the core group.The new
definitions.FormatGVKis used wherever the CLI names a type: resolver errors, the cluster collision warning, the no-definition error, and thekli definitions --group/--kindmiss. Thekli validatesuccess line also labels itGVK:instead ofmaps:Output change: the
gvkfield of thekli describe -o jsonno-definition payload uses the new format. The design doc marks the JSON shape unstable until v1, but a script that parses this field will see the change.Related issue(s)
Replaces #415, which was opened from a branch in this repo before PRs moved to forks.
Part of #411 (item 4). The other items are in separate PRs.
Checklist
git commit -s)make check)Summary by CodeRabbit
group/version/kindformatting, including for core-group resources.GVK.