Add template validation for k8s objects