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] Improve handling of extra args #4508

Merged
merged 2 commits into from
May 11, 2024

Conversation

h0tbird
Copy link
Contributor

@h0tbird h0tbird commented May 2, 2024

What this PR does / why we need it

Which issue this PR fixes

This PR enables the inclusion of additional arguments like --web.enable-remote-write-receiver, which do not support specifying a value.

Before

$ helm template charts/prometheus --set 'server.extraArgs.web\.enable-remote-write-receiver=' | grep remote
            - --web.enable-remote-write-receiver=

Notice the trailing = with no value, this 👆🏼 breaks prometheus.

After

$ helm template charts/prometheus --set 'server.extraArgs.web\.enable-remote-write-receiver=' | grep remote
            - --web.enable-remote-write-receiver

Without the trailing =, prometheus is happy.

Special notes for your reviewer

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

@h0tbird h0tbird force-pushed the no-value-extra-args branch from 716b8d5 to 6f78fec Compare May 2, 2024 20:07
@h0tbird h0tbird changed the title No value extra args [prometheus] No value extra args May 2, 2024
@h0tbird h0tbird force-pushed the no-value-extra-args branch 2 times, most recently from b0237b6 to e1aaf3e Compare May 2, 2024 21:11
@h0tbird h0tbird marked this pull request as ready for review May 2, 2024 21:32
Copy link
Member

@zeritti zeritti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @h0tbird, for your PR. Please, see my comments below.

charts/prometheus/templates/deploy.yaml Outdated Show resolved Hide resolved
charts/prometheus/templates/deploy.yaml Outdated Show resolved Hide resolved
@h0tbird h0tbird requested a review from zeritti May 9, 2024 16:56
@jkroepke jkroepke removed their request for review May 9, 2024 17:57
Copy link
Member

@zeritti zeritti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @h0tbird, LGTM.

@zeritti zeritti changed the title [prometheus] No value extra args [prometheus] Improve handling of extra args May 11, 2024
@zeritti zeritti merged commit 411ea4e into prometheus-community:main May 11, 2024
4 checks passed
@h0tbird h0tbird deleted the no-value-extra-args branch May 12, 2024 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants