Matthias M
Matthias M

Reputation: 14800

Debugging and Loglevels for Kubernetes Helm

When calling helm template ... I get this error:

Error: YAML parse error on `myfile.yaml`: error converting YAML to JSON: `yaml`: line 60: mapping values are not allowed in this context

I would like to know, if I can set debug options to analyze this problem. Because myfile.yaml is valid in another context with other values, it would be helpful, if I could print out the generated invalid yaml before helm tries to convert it to json.

There are options --debug and -v but these don't help.

Remarks

There is another question with the same title. But that question is about a specific problem. My question is not about a specific problem. Instead I would like to get general hints, how to analyze such problems.

Upvotes: 0

Views: 1314

Answers (1)

kgorskowski
kgorskowski

Reputation: 844

helm template --dry-run --debug does not validate the template/yaml.

This should print out the yaml as proposed to the kubernetes api.

Upvotes: 2

Related Questions