Skip to content

podLabels in azure-resourcemanager-exporter leads to mapping error #43

@ol3k

Description

@ol3k

in azure-resourcemanager-exporter-1.3.0 the podLabels annotation isn't working anymore:

  podLabels:
    azure.workload.identity/use: "true"

results in:

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

Looks like the issue references to the last refactoring in PR #27

charts/azure-resourcemanager-exporter/templates/deployment.yaml:

[...]
 labels:
        {{- include "azure-resourcemanager-exporter.selectorLabels" . | nindent 8 }}
        {{- with .Values.podLabels }}
        {{ toYaml . | indent 8 }}
        {{- end }}
      {{- if or (not .Values.existingConfigMap) (.Values.podAnnotations) (.Values.secrets) }}
[...]

Last working version is azure-resourcemanager-exporter-1.2.2

Edit:
Looks like
{{ toYaml . | indent 8 }}

has to be
{{- toYaml . | nindent 8 }}

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