Skip to content

Omit NAMESPACE column when querying resources in a single namespace #90

@snorwin

Description

@snorwin

gwctl get always includes the NAMESPACE column in its table output, even when the command explicitly targets a single namespace.

This results in redundant information and reduced readability when working within one namespace.

Example:
Command targeting a single namespace:

$ gwctl get httproute -n example-namespace
NAMESPACE           NAME           HOSTNAMES  PARENT REFS  ACCEPTED  RESOLVED  AGE
example-namespace   route-a        None       1            True      True      51s
example-namespace   route-b        None       2            True      True      51s
example-namespace   route-c        None       1            True      True      51s

Proposed Behavior
Display the NAMESPACE column only when the -A / --all-namespaces flag is specified.

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions