Skip to content

allow to specify the output format #31

@oemergenc

Description

@oemergenc

it would be nice, when it were possible to specify an output format. kubectl allows to output in json format. That way it is possible to pipe the output to other tools and only extract the exact field that is wanted, for example:

kubectl get pod my-pod -o jsonpath='{.data}' | jq -r '.["myfield"]'

Something like this would be nice:

describepod -o json | jq -r '.["myfield"]'

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