Helm values format validation tool
This tool allows you to validate the format of your Helm values using
a JSONSchema with the Helm pre-install & `pre-upgrade hooks.
French Readme - English Readme
Features
- Helm values format validation
- Display error messages in case of problems
- Manual execution possible

example/templates/tests/helm-values-validator.yaml file to your Helm stack.schema.json to the root of your Helm chart (same level as the values.yaml).helm install command.To see the validation error messages, you can use the following commands:
# Logs
kubectl logs helm-values-validator-release-name
# Error messages
kubectl get pod -n demo-test test-demo-helm-values-validator -o go-template="{{range .status.containerStatuses}}{{.state.terminated.message}}{{end}}"
If you want to run the validation without installing Helm, you can run the container with the files and variables as in the following command:
docker run -it -v $(pwd)/values.json:/values.json -v $(pwd)/schema.json:/schema.json -e SCHEMA_FILE=/schema.json -e VALUES_FILE=/values.json franckrst/helm-values-validator:0.0.0-alpha
A simple Helm pre-install and pre-upgrade hook that deploys:
MIT
Content type
Image
Digest
sha256:60dc59ab1…
Size
60.1 MB
Last updated
over 2 years ago
docker pull franckrst/helm-values-validator