Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error converting YAML to JSON: yaml: line 6: mapping values are not allowed in this context #63

Open
tobias0106 opened this issue Oct 24, 2024 · 0 comments

Comments

@tobias0106
Copy link
Contributor

How to Reproduce:

  1. Navigate to charts/azure-resourcegraph-exporter
  2. Run helm package .
  3. Run helm template ./ --set prometheus.monitor.enabled=true

Error Encountered

Error: YAML parse error on azure-resourcegraph-exporter/templates/prometheus/servicemonitor.yaml: error converting YAML to JSON: yaml: line 6: mapping values are not allowed in this context

Quick Fix:

To resolve the issue, modify line 8 in prometheus/servicemonitor.yaml by changing indent to nindent:

  labels: {{ include "azure-resourcegraph-exporter.labels" . | nindent 4 }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant