Skip to content

Add structured format options to istioctl analyze#18700

Merged
istio-testing merged 7 commits intoistio:masterfrom
zerobfd:output-formats
Nov 8, 2019
Merged

Add structured format options to istioctl analyze#18700
istio-testing merged 7 commits intoistio:masterfrom
zerobfd:output-formats

Conversation

@zerobfd
Copy link
Copy Markdown
Contributor

@zerobfd zerobfd commented Nov 6, 2019

Should close #18306

@zerobfd zerobfd requested a review from a team November 6, 2019 18:24
@zerobfd zerobfd requested a review from a team as a code owner November 6, 2019 18:24
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Nov 6, 2019
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 6, 2019
@zerobfd
Copy link
Copy Markdown
Contributor Author

zerobfd commented Nov 6, 2019

/retest

Copy link
Copy Markdown
Member

@howardjohn howardjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried it locally, looks good

Should we output Error: Analyzer found issues. when using json/yaml? Its not so bad since it goes to stderr so you can still do things like | jq ..

@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Nov 7, 2019
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Nov 7, 2019
@sushicw
Copy link
Copy Markdown
Contributor

sushicw commented Nov 7, 2019

/test integ-pilot-k8s-tests_istio

@zerobfd
Copy link
Copy Markdown
Contributor Author

zerobfd commented Nov 7, 2019

/retest

@howardjohn
Copy link
Copy Markdown
Member

/retest

@istio-testing istio-testing merged commit 15c21aa into istio:master Nov 8, 2019
selmanj pushed a commit to selmanj/istio that referenced this pull request Nov 27, 2019
* Add flag to control output format for analyze

See istio#18306. On its own this doesn't do anything, just adds a flag and
sets a default output format to the current format.

* Add MarshalJSON function for Message struct

* Add Json as an output format option to analyze

* Add YAML as an output format to analyze

* Update style re: PR feedback

* Use Unstructured for json marshaling messages

* Indent JSON output by default in analyze
sdake pushed a commit to sdake/istio that referenced this pull request Dec 1, 2019
* Add flag to control output format for analyze

See istio#18306. On its own this doesn't do anything, just adds a flag and
sets a default output format to the current format.

* Add MarshalJSON function for Message struct

* Add Json as an output format option to analyze

* Add YAML as an output format to analyze

* Update style re: PR feedback

* Use Unstructured for json marshaling messages

* Indent JSON output by default in analyze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/user experience cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

istioctl analyze should support structured output (json)

9 participants