Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 396 forks source link

make chart validation errors from helm prettier #631

Open michelleN opened 6 years ago

michelleN commented 6 years ago

ex.

example-java: Releasing Application /buildApp: release error: could not install release: rpc error: code = Unknown desc = render error in "java/templates/ingress.yaml": template: java/templates/ingress.yaml:1:14: executing "java/templates/ingress.yaml" at <.Values.ingress.enab...>: can't evaluate field enabled in type interface {}
bacongobbler commented 6 years ago

this would be a fantastic starter issue. :)

itowlson commented 6 years ago

There's a limited amount we can do on the Draft side about this; is it something we should tackle on the Helm side, or just try to recognise the error from the Helm message and pretty it up as best we can?

bacongobbler commented 6 years ago

It's actually turtles all the way down: the error comes from kubernetes' validation APIs, then goes through tiller then Draft. :)