How to reproduce:
Enable Prometheus in values.yaml
:
prometheus:
monitor:
enabled: true
Run the command:
helm template .
Error:
Error: YAML parse error on azure-resourcemanager-exporter/templates/prometheus/servicemonitor.yaml: error converting YAML to JSON: yaml: line 6: mapping values are not allowed in this context
How to fix:
Change indent
to nindent
on line 8 in servicemonitor.yaml
.