kumahq / kuma

🐻 The multi-zone service mesh for containers, Kubernetes and VMs. Built with Envoy. CNCF Sandbox Project.
https://kuma.io/install
Apache License 2.0
3.67k stars 333 forks source link

Modify (Default) outputs for kumactl #7773

Open johnharris85 opened 1 year ago

johnharris85 commented 1 year ago

Description

Something like kumactl get dataplanes is pretty useful, but the default output is very noisy because of usually long service names and multiple tags.

We should introduce a formatting option to select the fields you want to come back from these commands, or at the very least provide some jq examples to get better output here initially? Could also truncate fields with ... that are longer than n characters, and provide a flag to show the entire value if they opt-in?

jakubdyszkiewicz commented 1 year ago

Introduce

kumactl get services

based on MeshInsights just like UI.

Add SERVICE column and hide tags by default (make it possible to switch it on)

MESH      NAME                                                   TAGS                                                                                                                                                                                                                                                          ADDRESS       AGE
default   test.kuma-demo-app-5cf9bc7544-p559d.kuma-demo          app=kuma-demo-frontend env=prod k8s.kuma.io/namespace=kuma-demo k8s.kuma.io/service-name=frontend k8s.kuma.io/service-port=8080 kuma.io/protocol=http kuma.io/service=frontend_kuma-demo_svc_8080 kuma.io/zone=test pod-template-hash=5cf9bc7544 version=v8   10.244.0.13   53y
default   test.kuma-demo-backend-v0-7896cd8486-nphct.kuma-demo   app=kuma-demo-backend env=prod k8s.kuma.io/namespace=kuma-demo k8s.kuma.io/service-name=backend k8s.kuma.io/service-port=3001 kuma.io/protocol=http kuma.io/service=backend_kuma-demo_svc_3001 kuma.io/zone=test pod-template-hash=7896cd8486 version=v0      10.244.0.12   53y
default   test.postgres-master-557f86ddd9-vt86l.kuma-demo        app=postgres k8s.kuma.io/namespace=kuma-demo k8s.kuma.io/service-name=postgres k8s.kuma.io/service-port=5432 kuma.io/protocol=tcp kuma.io/service=postgres_kuma-demo_svc_5432 kuma.io/zone=test pod-template-hash=557f86ddd9                                  10.244.0.10   53y
default   test.redis-master-7ddcf54867-qx6fr.kuma-demo           app=redis k8s.kuma.io/namespace=kuma-demo k8s.kuma.io/service-name=redis k8s.kuma.io/service-port=6379 kuma.io/protocol=tcp kuma.io/service=redis_kuma-demo_svc_6379 kuma.io/zone=test pod-template-hash=7ddcf54867 role=master tier=backend                  10.244.0.11   53y
lnajdekKong commented 1 year ago

I'll take this one @johnharris85

github-actions[bot] commented 10 months ago

This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. If you think this issue is still relevant, please comment on it or attend the next triage meeting.

github-actions[bot] commented 7 months ago

This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. If you think this issue is still relevant, please comment on it or attend the next triage meeting.

slonka commented 7 months ago

Any updates here @lnajdekKong ?

github-actions[bot] commented 4 months ago

This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. If you think this issue is still relevant, please comment on it or attend the next triage meeting.

github-actions[bot] commented 1 month ago

This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. If you think this issue is still relevant, please comment on it or attend the next triage meeting.