cloudfoundry / cf-k8s-networking

building a cloud foundry without gorouter....
Apache License 2.0
32 stars 17 forks source link

[REQUEST] Display Route URL and App GUID in kubectl wide view. #48

Closed mike1808 closed 4 years ago

mike1808 commented 4 years ago

Is your feature request related to a problem? Please describe.

Because Route custom resources don't have human-readable names to understand which apps and URLs are routed one has to get YAML output of the resource to get that information.

It especially takes more time to identify required route resources in the list of routes, as you one has to get Routes YAML output, search by required criteria in output, and lookup name of the route in the metadata.

Describe the solution you'd like

Display URL and App GUID of the route when performing kubectl get routes -owide command.

Describe alternatives you've considered

kubectl get routes -oyaml | grep -B 50 "my URL" then find name manually kubectl get routes -ojson | jq '.fancy filter which will match by URL and return name of the route kubectl get routes -n cf-workloads -ojsonpath='{.items[].metadata.name} {.items[].spec.url}' | grep "my URL"

Additional context

It's common for common resources has columns which are displayed in -owide output. For example, Istio's VirtualService displays hostnames and gateways.

Contributions

I'm going to contribute this.

cf-gitbot commented 4 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/173370990

The labels on this github issue will be updated when the story is started.