webdevops / helm-charts

Helm charts for webdevops applications
Apache License 2.0
0 stars 14 forks source link

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

Closed ol3k closed 2 months ago

ol3k commented 1 year ago

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