kubie icon indicating copy to clipboard operation
kubie copied to clipboard

add partial namespace matching

Open gsstuart opened this issue 7 months ago • 0 comments

I've found this enhancement to be very useful in accommodating my own ~laziness~ workflow, so figured I'd submit for inclusion if interested : )

Adds a third option, partial, to the validate_namespaces behavior setting, which causes kubie ns <ns> to perform a check for partial matches when an exact namespace match is not found.

For example, on a cluster with an ingress-system namespace, running kubie ns ingress would switch to ingress-system.

Running kubie ns system would bring up the select-or-list interface showing, i.e., gatekeeper-system, ingress-system and kube-system.

The existing true and false values retain their original behavior, with the default remaining true. This change is backwards-compatible and requires no updates to kubie.yaml, unless one chooses to enable partial.

gsstuart avatar Jul 21 '24 22:07 gsstuart