Bootstrap FreeKB - Helm - Lint charts using the helm lint command
Helm - Lint charts using the helm lint command

Updated:   |  Helm articles

You may want to first check out my article FreeKB - OpenShift - Deploy Hello Openshift.

This also assumes you've already installed the helm CLI on the system that you want to use to create the Helm chart to deploy Hello OpenShift.

Let's say you have the following files that make up your chart.

├── my-chart (directory)
│   ├── Chart.yaml
│   ├── values.yaml
│   ├── charts (directory)
│   └── templates (directory)
│       └── configmap.yaml
│       └── deployment.yaml
│       └── serviceaccount.yaml
│       └── service.yaml

 

The helm lint command can be used to determine if there are any syntax errors in the files in the my-chart directory.

~]$ helm lint my-chart
==> Linting my-chart
[INFO] Chart.yaml: icon is recommended
[ERROR] templates/configmap.yaml: unable to parse YAML: error converting YAML to JSON: yaml: line 7: did not find expected key

Error: 1 chart(s) linted, 1 chart(s) failed

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 82071a in the box below so that we can be sure you are a human.