errordeveloper / kubegen

kubegen – simple way to describe Kubernetes resources in a structured way, but without new syntax or magic
Other
135 stars 12 forks source link

validation #22

Open errordeveloper opened 6 years ago

errordeveloper commented 6 years ago

We can do deep validation, but perhaps using the API schema is doable, or kubeval may be a nicer option.

Also, kubetest hooks could be built-in.

cc @garethr

garethr commented 6 years ago

Kubeval can be used as a library (https://github.com/garethr/kubeval#library) for this kind of purpose. Over time I'd see that being more interesting than the CLI, because it means everyone doesn't have to recreate the wheel. Happy to help as time permits with hooking that up.

errordeveloper commented 6 years ago

@garethr thanks, I'll look into this soon.

I have a few things in mind, essentially I'd like to see what we can do avoid some common pitfalls:

Seems like some of this would be kubetest territory, isn't it?

garethr commented 6 years ago

Correct. I've not had much chance to work on kubetest of late, although the intent is to make it consumable as a library in the same way. And also to have a way of bundling up test like that. But time is not always my friend. Happy to chat/help where I can mind.