Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd: Make -o json an alias for -o jsobpb #826

Merged
merged 1 commit into from
Dec 20, 2022

Commits on Dec 19, 2022

  1. cmd: Make -o json an alias for -o jsobpb

    This commit removes the old deprecated JSON output and fully replaces it
    with the newer JSONPB output (based on proto3's json mapping).
    
    This is a breaking change, users of `-o json` will have to adopt the
    output parsing slightly: Each emitted object is now wrapped in a
    `GetFlowsResponse`, which means that the flow object (the root of the
    previous JSON output) is now accessible via the `.flow` attribute. For
    example, a query of the form `hubble observe -o json | jq
    .source.labels` now needs to be written as `hubble observe -o json | jq
    .flow.source.labels`.
    
    Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
    gandro committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    dddc2df View commit details
    Browse the repository at this point in the history