-
Notifications
You must be signed in to change notification settings - Fork 360
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
Add a egctl get <x> --graph
command to be able to visualize dependencies between gateway API resources
#1051
Comments
@zirain I think |
@zirain @arkodg yea I think the
|
for Route:
|
would there be other
could work. If you want a normal resource list, just use |
@haq204 the design doc for |
@arkodg perhaps we can omit the
I'm just thinking in terms of how I would be typing this in the terminal 😆 but I'm not opposed to putting it behind
and
My only worry is that it's a lot to type but I guess that's what aliases are for. |
yah agree, its a lot more to type, but it adds consistency to the |
IMO, |
In the original post I mentioned about potentially upstreaming this to kubectl since we're just dealing with Gateway API resources. Another possible route is to make this a kubectl plugin while we work on getting this built into kubectl. Since this isn't a Envoy Gateway specific thing but every Gateway API implementation would benefit from this. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. |
linking a cool piece of tech that @michaelvl built out https://github.com/michaelvl/gateway-api-lens that does this ! |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. |
upstream has introduced gwctl and a lot of what this issue is taking about exists there. closing for now |
Description:
An issue that crops up when using the Gateway API is understanding the dependency between resources. For example, When listing a gateway resource, a platform/infrastructure developer wants to know what HTTPRoutes are attached to it or what extensionRef filters are attached to an HTTPRoute.
Introduce a
get
subcommand with a--graph
option that outputs a tree of gateway resources and how they are related. For example,egctl get --graph gateway mygateway
could output:The columns are the standard column outputs from
kubectl get
and subresources also provide the same information fromkubectl get
deliminated by;
as well as an additional namespace field.Initially we can start with Gateway Classes, Gateways, & HTTPRoutes, and eventually add support extensionRef filters.
We could also eventually propose adding it to upstream kubectl for Gateway API resources
The text was updated successfully, but these errors were encountered: