skupper icon indicating copy to clipboard operation
skupper copied to clipboard

`skupper site status` ignores `-o` flag

Open hash-d opened this issue 8 months ago • 2 comments

Describe the bug

Exactly what it says on the tin

How To Reproduce

$ skupper site status -o json
NAME    STATUS  MESSAGE
asdf    Ready   OK
$ skupper site status -o yaml
NAME    STATUS  MESSAGE
asdf    Ready   OK

Expected behavior

An YAML or JSON output

Environment details

  • Skupper CLI: 2.0 and main
  • Skupper Operator (if applicable): Not applicable
  • Platform: kubernetes, openshift

Additional context

Not applicable

hash-d avatar Apr 06 '25 13:04 hash-d

Additionally, on site status:

$ skupper site status 
NAME    STATUS  MESSAGE
west    Ready   OK
$ oc get sites.skupper.io 
NAME   STATUS   SITES IN NETWORK   MESSAGE
west   Ready    2                  OK

It does not relay the SITES IN NETWORK column — is that intentional?

hash-d avatar Apr 06 '25 14:04 hash-d

@hash-d "sites in network" is not specified in refdog, so that is why it is not displayed in the cli output. https://skupperproject.github.io/refdog/commands/site/status.html

But it could be added if @ssorj agrees

@noe The site command does appear to be missing the -o flag processing. I can add it.

lynnemorrison avatar Apr 07 '25 13:04 lynnemorrison