feat(cli): add jmp describe for exporters, leases, and clients - #1043
Open
kirkbrauer wants to merge 2 commits into
Open
feat(cli): add jmp describe for exporters, leases, and clients#1043kirkbrauer wants to merge 2 commits into
kirkbrauer wants to merge 2 commits into
Conversation
Contributor
|
Warning Review limit reachedNext included review available in 49 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
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 |
mangelajo
reviewed
Aug 31, 2026
mangelajo
left a comment
Member
There was a problem hiding this comment.
nice. can we add it to documentation? :)
Add a kubectl-style 'jmp describe' command group (alias: desc) with exporter, lease, and client subcommands. Default output is aligned plain-text key/value sections; -o json|yaml routes through model_print. 'describe client' reports token expiry and validity without ever printing token values, using a dedicated ClientDescription model for structured output. Assisted-by: Claude:claude-fable-5 Signed-off-by: Kirk Brauer <kirkebrauer@gmail.com>
…exporter The Lease block in `jmp describe exporter` could never render: GetExporter answers with the exporter alone, so `exporter.lease` was always None and a busy exporter reported "Lease: <none>". The tests hung a lease on the exporter themselves, which the server never does, so they covered it. Look the holding lease up through ListLeases instead, and pin it with a test that builds the exporter the way the server returns it. Documents the command in the distributed mode guide, where a user first needs to know which exporters exist and what to select on, and points the lease troubleshooting entry at it. Assisted-by: Claude Signed-off-by: Kirk Brauer <kirkebrauer@gmail.com>
kirkbrauer
force-pushed
the
cli-describe
branch
from
August 31, 2026 14:09
93786eb to
8022fa3
Compare
Member
Author
|
@mangelajo Added some docs and fixed a few additional issues I noticed from review. |
bennyz
approved these changes
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
jmp getanswers what exists; there was no way to ask about one of them in detail short of reading the raw object.Adds
jmp describe exporter|lease|client <name>, followingkubectl describe: a readable summary by default,-o json|yamlfor a machine. Describing an exporter reports the lease holding it, describing a lease reports its conditions, and describing a client reads the local config — so it works without a connection and says whether the token is still valid. The client description never emits token material.Documented in the distributed mode guide, where a user first needs to know which exporters exist and what to select on, and from the lease troubleshooting entry in the testing guide. The man page picks the commands up from click.