jpbetz / auger

Directly access data objects stored in etcd by kubernetes.
Apache License 2.0
386 stars 61 forks source link

Add field filter support. #23

Closed jpbetz closed 5 years ago

jpbetz commented 5 years ago

This splits out the data access layer of auger into it's own package as part of this to keep the code organized. The data access layer now includes 'filter' support that uses the same field naming as already introduced --template flag. E.g. to filter out objects in a specific namespace, one could now do:

auger extract -d <data-file> --filter=".Value.metadata.namespace=kube-system"
jpbetz commented 5 years ago

@wenjiaswe Would you give this a quick review?

jpbetz commented 5 years ago

Looks great overall, just few minor things. It would also be good to add the filter usage to the https://github.com/jpbetz/auger/blob/master/README.md, this is very useful. It can be in different PRs, it's your call:) Thanks!

Thanks for the review! I've added a section to the README as well.