Validation of values yaml for each input before rendering of templates

8/29/2019

I want to validate the user inputs present under values.yaml in helm chart.Based on the validation result, either release will go through or it will fail with a custom error message. Validation example could be like below:

portNo: somnestringvalue

Here, portNo should be an integer but it is a string. So I would expect the deployment to fail with some custom error message. I am on helm version v2.14.3. Looking for a way to validate such cases.

-- Nish
kubernetes
kubernetes-helm

0 Answers