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 groups" #134

Closed jokestax closed 1 week ago

jokestax commented 2 weeks ago

Description

Add support for filtering based on group names by using the --include-group or --exclude-group flags.

Testing

Run the following command to test filtering by group names:


kubectl-slice --input-file ./slice/testdata/full.yaml --output-dir ./testdata --include-group apps