Skip to content

feat(admin): keep labels in client and exporter output - #1044

Merged
bennyz merged 1 commit into
mainfrom
cli-admin-object-labels
Aug 31, 2026
Merged

feat(admin): keep labels in client and exporter output#1044
bennyz merged 1 commit into
mainfrom
cli-admin-object-labels

Conversation

@kirkbrauer

@kirkbrauer kirkbrauer commented Aug 30, 2026

Copy link
Copy Markdown
Member

jmp admin get client|exporter -o json|yaml rebuilt each object's metadata without its labels, so the field an exporter is selected by was missing from output the command had already fetched it in. Anything grouping or filtering exporters had to fall back to kubectl.

Touches the same four files as #1045, so whichever merges second needs a trivial rebase.

Labels are what an exporter is selected by and how clients are grouped,
but from_dict rebuilt the metadata without them, so they were absent from
`jmp admin get client|exporter -o json|yaml` even though the cluster had
them. Anything reading that output - a UI listing a namespace, a script
grouping exporters - had to fall back to kubectl for a field the command
was already fetching.

Assisted-by: Claude
Signed-off-by: Kirk Brauer <kirkebrauer@gmail.com>
@kirkbrauer kirkbrauer added bug Something isn't working python Pull requests that update python code labels Aug 30, 2026
@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 54 minutes.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7c003f36-91c9-41fa-aca9-300835c91c7b

📥 Commits

Reviewing files that changed from the base of the PR and between d787eec and 5c5f484.

📒 Files selected for processing (4)
  • python/packages/jumpstarter-kubernetes/jumpstarter_kubernetes/clients.py
  • python/packages/jumpstarter-kubernetes/jumpstarter_kubernetes/clients_test.py
  • python/packages/jumpstarter-kubernetes/jumpstarter_kubernetes/exporters.py
  • python/packages/jumpstarter-kubernetes/jumpstarter_kubernetes/exporters_test.py

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kirkbrauer
kirkbrauer requested review from bennyz and mangelajo August 31, 2026 05:15
@bennyz
bennyz added this pull request to the merge queue Aug 31, 2026
Merged via the queue into main with commit 3059949 Aug 31, 2026
31 checks passed
@bennyz
bennyz deleted the cli-admin-object-labels branch August 31, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants