linkerd / linkerd2

Ultralight, security-first service mesh for Kubernetes. Main repo for Linkerd 2.x.
https://linkerd.io
Apache License 2.0
10.49k stars 1.27k forks source link

Add json output format support to linkerd profile command #12611

Closed adleong closed 1 month ago

adleong commented 1 month ago

Add an-o/--output flag to the linkerd profile command which outputs ServiceProfile manifests. The supported output formats are yaml (default) and json. Both of these formats are supported by kubectl and either one can be piped into kubectl apply.