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

feat: added a check to determine if thanos support the '--prometheus.http-client' flag #6448

Conversation

MateSousa
Copy link
Contributor

Description

The operator needs a check to see if the thanos version supports the --prometheus.http-client flag.

Closes #5223

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Verification

It already has a test to check if it has this flag in Thanos args, so I created a new test to check if a version < v0.24.0 don't have the flag.

you can run the command: go test ./pkg/prometheus/server to test

Changelog entry

added a check to determine if thanos supports the '--prometheus.http-client' flag`

@MateSousa MateSousa requested a review from a team as a code owner March 29, 2024 23:18
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

Thanks!

@simonpasquier simonpasquier merged commit 5d9a88a into prometheus-operator:main Apr 2, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The operator should check that the Thanos sidecar's version supports the --prometheus.http-client flag
2 participants