kube-test-harness icon indicating copy to clipboard operation
kube-test-harness copied to clipboard

codegen similar code common to every Kubernetes object

Open dlespiau opened this issue 6 years ago • 1 comments

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!

dlespiau avatar Jul 03 '18 07:07 dlespiau

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.

errordeveloper avatar Aug 03 '18 08:08 errordeveloper