[gwctl] (bug too) kubectl-compliant get
subcommand with per-resource access
#3041
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
What would you like to be added:
The ability to get a specific resource with gwctl like
or
Why this is needed:
Currently, it's not possible to get a specific resource via
gwctl get RESOURCE_TYPE RESOURCE_NAME
because of a max limit of 1 arg set up with cobra under get.goDue to this, the
resourcediscovery.Filter
's Name attribute becomes unreachable by the user despite it being used under various cases underswitch kind
Moreover, the parsing of
kind
isn't completely compliant with kubectl convention ofkubectl get RESOURCE_TYPE/RESOURCE_NAME
Where kubectl parses the kind as RESOURCE_TYPE and name as RESOURCE_NAME, gwctl blindly parses the kind as
RESOURCE_TYPE/RESOURCE_NAME
and name as""
The text was updated successfully, but these errors were encountered: