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

Add LinodeSD configuration fields to the Scrape Config CRD #6586

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mviswanathsai
Copy link
Contributor

@mviswanathsai mviswanathsai commented May 14, 2024

Description

This PR adds the LinodeSD configuration fields to the ScrapeConfig CRD.
Closes #6579

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)
  • [ x] 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

Please check the Prometheus-Operator testing guidelines for recommendations about automated tests.

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

- Add Linode service discovery configuration options to the ScrapeConfig CRD.

@mviswanathsai mviswanathsai requested a review from a team as a code owner May 14, 2024 08:18
Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

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

sorry, just had a very brief look over the PR... I didn't have the time for a detailed review

pkg/prometheus/promcfg.go Outdated Show resolved Hide resolved
@mviswanathsai
Copy link
Contributor Author

There's a problem with the generated code it seems like, what should we do?
PS: I will squash the commits once the PR is approved :)

@mviswanathsai
Copy link
Contributor Author

PS: I will squash the commits once the PR gets approval!

@ArthurSens
Copy link
Member

Hmmmm, not sure what's happening here... The Generate and format seems to be a flake, but I'm not understanding the failures in the unit tests 🤔

@mviswanathsai mviswanathsai force-pushed the add-linodeSDConfig branch 2 times, most recently from 3fa4147 to 77eddf3 Compare May 29, 2024 12:36
@slashpai
Copy link
Contributor

Can you pull latest changes from main and run generate again. There was API dependencies bump done today looks like failures in generate is due to that.

@mviswanathsai mviswanathsai force-pushed the add-linodeSDConfig branch 2 times, most recently from f0d005b to 34cd7c4 Compare May 29, 2024 15:41
@mviswanathsai mviswanathsai force-pushed the add-linodeSDConfig branch 2 times, most recently from ff547c3 to 831e05b Compare May 30, 2024 10:13
@mviswanathsai
Copy link
Contributor Author

I also added a validation for MinLength for the region field, considering that Prometheus rejects empty string values anyway.

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.

Add Linode SD config to the ScrapeConfig CRD
4 participants