Skip to content

List table output hardcoded to wide and show labels #824

@manusa

Description

@manusa

Consider adding additional options to the list output (table)

Sorry @manusa, reading more deeply I was confused about what was causing the large response my MCP keeps getting compared to what the equivalent calls get with kubectl. >Just as an example, on one of our clusters running kubectl get nodes returns 4.5k characters, whereas the equivalent call with the MCP returns 88k characters (despite using the default table mode) - uses up a lot of context window during sessions.

The actual issue I'm hitting is that the table printer in pkg/output/output.go hardcodes Wide: true and ShowLabels: true. Different issue, and I see there's already three issues (#608, #688, #722) about it. I'll close out this PR, thanks for the review.

Originally posted by @gregtuc in #813 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions