cilium-cli icon indicating copy to clipboard operation
cilium-cli copied to clipboard

JSON output for status

Open raphink opened this issue 3 years ago • 0 comments
trafficstars

Proposal / RFE

It would be useful if the output of the status commands could be easily parsed.

For example, I'm using cilium clustermesh status to check if clusters are meshed with one another, something like:

cilium clustermesh status --context cluster1 | grep -q cluster2 && echo "meshed"

but it'd be more precise to get a -o json or -o jsonpath and filter on a specific field of the output.

raphink avatar Jul 06 '22 06:07 raphink