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: add support for Hetzner SD in ScrapeConfig CRD #6436

Merged

Conversation

mouad-eh
Copy link
Contributor

@mouad-eh mouad-eh commented Mar 25, 2024

Description

I am using this Draft PR as example to illustrate some implementation details in my GSOC proposal. Feel free to ignore it if you are not reviewing my GSOC proposal.

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

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.


Copy link
Contributor

@slashpai slashpai left a comment

Choose a reason for hiding this comment

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

Just a few nits otherwise looks good to me

pkg/prometheus/promcfg_test.go Outdated Show resolved Hide resolved
pkg/prometheus/resource_selector.go Outdated Show resolved Hide resolved
@mouad-eh
Copy link
Contributor Author

mouad-eh commented Apr 2, 2024

The CI was failing because some linting checks failed. The logs didn't specify on which line of code the linter was failing, I had to run the linting process locally to know that. Don't you think we should improve that ? maybe linting should be part of "make all" ?
In the first place, I thought that "make format" is performing both formatting and linting.

@slashpai
Copy link
Contributor

slashpai commented Apr 2, 2024

You are likely getting errors due to merge conflicts

@slashpai
Copy link
Contributor

slashpai commented Apr 2, 2024

@mouad-eh Can you rebase your branch? There were multiple PRs for SDs so thats why you have got merge conflicts

@mouad-eh
Copy link
Contributor Author

mouad-eh commented Apr 2, 2024

@slashpai Done.

pkg/prometheus/promcfg.go Outdated Show resolved Hide resolved
pkg/prometheus/promcfg.go Show resolved Hide resolved
pkg/prometheus/resource_selector.go Outdated Show resolved Hide resolved
pkg/prometheus/resource_selector_test.go Show resolved Hide resolved
@slashpai
Copy link
Contributor

slashpai commented Apr 3, 2024

If changes looks good from your side move to ready for review from draft

@mouad-eh mouad-eh marked this pull request as ready for review April 3, 2024 07:41
@mouad-eh mouad-eh requested a review from a team as a code owner April 3, 2024 07:41
@slashpai slashpai merged commit 18a9179 into prometheus-operator:main Apr 3, 2024
17 checks passed
@slashpai
Copy link
Contributor

slashpai commented Apr 3, 2024

Thanks!

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.

None yet

2 participants