patrickdappollonio / kubectl-slice

Split multiple Kubernetes files into smaller files with ease. Split multi-YAML files into individual files.
MIT License
297 stars 23 forks source link

Add support for "API group" #120

Closed patrickdappollonio closed 1 week ago

patrickdappollonio commented 5 months ago

What did you do?

I have a bunch of manifests that need to be split by group and kind. I have two CRDs which both register an Application object (say, foo.example.com/v1/Application and bar.example.org/v1beta1/Application).

What did you expect to see?

Be able to extract only those Applications from foo.example.com and not those from bar.example.org.

What did you see instead?

All Applications are pulled, with no way to specify the group.

Alternatively, it might be worth also be able to target versions.

patrickdappollonio commented 1 week ago

Done in https://github.com/patrickdappollonio/kubectl-slice/pull/134, thanks @jokestax!