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

[prometheus-blackbox-exporter] Issue with extraInitContainers #3856

Closed
maximebrun opened this issue Oct 3, 2023 · 1 comment · Fixed by #3850
Closed

[prometheus-blackbox-exporter] Issue with extraInitContainers #3856

maximebrun opened this issue Oct 3, 2023 · 1 comment · Fixed by #3850
Labels
bug Something isn't working

Comments

@maximebrun
Copy link

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

Error running helm template with extra init container.

What's your helm version?

v3.13.0

What's your kubectl version?

v1.26.7

Which chart?

prometheus-blackbox-exporter

What's the chart version?

8.4.0

What happened?

There is a an error running helm template with additional extraInitContainers :

$ helm template .
Error: YAML parse error on prometheus-blackbox-exporter/templates/deployment.yaml: error converting YAML to JSON: yaml: line 37: block sequence entries are not allowed in this context

With debug flag, we see this result :

...
      initContainers:  - args:
          - echo "Fake..."
...

What you expected to happen?

Template output whithout error.

How to reproduce it?

run helm template .

Enter the changed values of values.yaml?

extraInitContainers:

  • name: test
    image: prom/blackbox-exporter:v0.24.0
    command: ["/bin/sh", "-c"]
    args:
    • echo "Fake..."

Enter the command that you execute and failing/misfunctioning.

helm template .

Anything else we need to know?

Problem exist with extraInitContainers and extraContainers.

@maximebrun maximebrun added the bug Something isn't working label Oct 3, 2023
@zeritti
Copy link
Member

zeritti commented Oct 3, 2023

#3850

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants