patrickdappollonio/kubectl-slice

Add support for globs for Names and Kinds

patrickdappollonio opened this issue · 1 comments

Currently, --exclude-kind and --include-kind use an exact match (although case insensitive) of the Kubernetes kind field. It would be good if moving forward, and especially I add --exclude-name, for example, that the field should take globs.

There's a nifty library that can provide this kind of benefit: https://github.com/gobwas/glob, however it hasn't been updated in a while.

Alternate libraries: https://github.com/mattn/go-zglob; https://github.com/mb0/glob. The latter seems to be closed to the Go standard library.