Skip to content

[prometheus-json-exporter] Wrong indentation with additional volumes #5894

@pkr4711

Description

@pkr4711

Describe the bug a clear and concise description of what the bug is.

Helm chart didn't render correctly if you specify a additionalVolumeMounts

        volumeMounts:
          - name: config-configmap-volume
            mountPath: /config.yml
            subPath: config.yml
            - mountPath: /tmp/path-to-file.yaml
              name: path-to-file
              subPath: path-to-file.yaml

What's your helm version?

v3.17.3

What's your kubectl version?

v1.33.1

Which chart?

prometheus-json-exporter

What's the chart version?

0.19.0

What happened?

No response

What you expected to happen?

https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus-json-exporter/templates/deployment.yaml#L82

nindent 12 -> nindent 10

How to reproduce it?

No response

Enter the changed values of values.yaml?

additionalVolumeMounts:

  • name: path-to-file
    mountPath: "/tmp/path-to-file.yaml"
    subPath: path-to-file.yaml

Enter the command that you execute and failing/misfunctioning.

see above comments please

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions