Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add partial namespace matching #245

Merged
merged 2 commits into from
Sep 11, 2024
Merged

add partial namespace matching #245

merged 2 commits into from
Sep 11, 2024

Conversation

gsstuart
Copy link
Contributor

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.

@sbstp
Copy link
Owner

sbstp commented Sep 5, 2024

I'll try to test the PR soon.

@sbstp
Copy link
Owner

sbstp commented Sep 11, 2024

Thanks, works well. Merging in.

@sbstp sbstp merged commit e03b6b5 into sbstp:master Sep 11, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants