Skip to content

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

@tobias0106

Description

@tobias0106

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 }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions