7 ms·
How is this command from the page: # Lint a Helm chart # Good to put in pre-merge checks $ helm template . | kubeval - different/ better than "helm lint
by bobbyi_settv 5y ago
How is this command from the page:
# Lint a Helm chart
# Good to put in pre-merge checks
$ helm template . | kubeval -
different/ better than "helm lint" (https://helm.sh/docs/helm/helm_lint/ https://helm.sh/docs/helm/helm_lint/)?
- alexhwoods 5y agoI could be wrong here, but I think `helm lint` just checks that the chart is formed correctly — Go templating and all. I don't think it validates the Kubernetes resources. Here's an example: $ helm create foo $ cd foo Then change "apiVersion" in deployment.yaml to "apiVersion: nonsense" In the linting, I got $ helm lint ==> Linting . [INFO] Chart.yaml: icon is recommended 1 chart(s) linted, 0 chart(s) failed $ helm template . | kubeval - ERR - foo/templates/deployment.yaml: Failed initializing schema https://kubernetesjsonschema.dev/master-standalone/deployment-nonsense.json https://kubernetesjsonschema.dev/master-standalone/deploymen...: Could not read schema from HTTP, response status is 404 Not Found