kube-test-harness
kube-test-harness copied to clipboard
codegen similar code common to every Kubernetes object
We have similar looking code in every object (Get, Create, ...) and maybe for each object version supported by client-go as well (see #6) it'd be nice to codegen it instead of copy/pasting things!
I've used https://github.com/ncw/gotemplate for a similar use-case, and it worked nicely for me, especially because template packages are still valid Go packages and gofmt and all the rest work.