Skip to content

Commit

Permalink
gwctl: Introduce a --for flag to filter results related to a specif…
Browse files Browse the repository at this point in the history
…ied resource. (kubernetes-sigs#3068)

* Remove unnecessary flags exposed by klog and only expose the verbosity (-v)
flag. Get rid of global flag variables like kubeConfigPath.

* Remove duplication in Get and Describe commands.

* Add missing discovery functions discoverGatewaysForGatewayClasses() and
discoverBackendsForHTTPRoutes().

* Add --for flag for filtering resources based on an associated resource.

For example:
* gwctl get backends --for gateway/ns2/my-gateway
* gwctl get gateways --for httproute/ns1/my-httproute
* gwctl get gateways --for gatewayclass/foo-gatewayclass

* fixup! Remove duplication in Get and Describe commands.

* fixup! Add missing discovery functions discoverGatewaysForGatewayClasses() and discoverBackendsForHTTPRoutes().

* fixup! Remove duplication in Get and Describe commands.

* fixup! Add --for flag for filtering resources based on an associated resource.
  • Loading branch information
gauravkghildiyal authored and BobyMCbobs committed Jul 10, 2024
1 parent ceb44ec commit c4bfd2a
Show file tree
Hide file tree
Showing 13 changed files with 1,171 additions and 571 deletions.
224 changes: 0 additions & 224 deletions gwctl/cmd/describe.go

This file was deleted.

Loading

0 comments on commit c4bfd2a

Please sign in to comment.