GoogleCloudPlatform/k8s-cluster-bundle

Add ObjectTemplate

artasparks opened this issue · 2 comments

Right now the raw text template types assuming that you're using go templates and that you've stored the information as a config map.

That's ok, but that's not totally ideal. There's no parameter validation / defaulting. Also, it's hard to add more functionality (like more template types).

So, here's the idea: Let's create an ObjectTemplate type. It would look essentially the same as the PatchTemplate, except that it would specify a TemplateType

Additionally, you could have an ObjectTemplateBuilder, although it's super crucial.

This is now done.