Skip to content

Commit a296435

Browse files
gwctl: Introduce a --for flag to filter results related to a specified resource. (#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.
1 parent cd6379d commit a296435

File tree

13 files changed

+1171
-571
lines changed

13 files changed

+1171
-571
lines changed

gwctl/cmd/describe.go

Lines changed: 0 additions & 224 deletions
This file was deleted.

0 commit comments

Comments
 (0)