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

Fix relabelings for ScrapeConfig #5611

Conversation

EtienneBarbier
Copy link
Contributor

@EtienneBarbier EtienneBarbier commented May 26, 2023

Description

Fix relabelings issue in ScrapeConfig CRD, generate them correctly.
Fix #5610

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.)

Changelog entry

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

Fix relabelings issue in ScrapeConfig CRD.

@EtienneBarbier EtienneBarbier requested a review from a team as a code owner May 26, 2023 22:02
Copy link
Contributor

@xiu xiu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the report and fix!

Copy link
Contributor

@philipgough philipgough left a comment

Choose a reason for hiding this comment

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

lgtm

@EtienneBarbier @xiu - if we want to include this fix as a patch release it should target release-0.65 branch instead of main

@EtienneBarbier
Copy link
Contributor Author

Ok, only one PR in the release branch (with backport to main) or two PR ?

@philipgough
Copy link
Contributor

@EtienneBarbier just this one and we can cherry-pick back after

@EtienneBarbier
Copy link
Contributor Author

Ok Great 👍

@philipgough philipgough changed the base branch from main to release-0.65 May 29, 2023 16:16
@philipgough philipgough changed the base branch from release-0.65 to main May 29, 2023 16:16
@philipgough
Copy link
Contributor

@EtienneBarbier I think it will need a rebase when you change the target branch btw

@EtienneBarbier EtienneBarbier changed the base branch from main to release-0.65 May 30, 2023 16:09
@EtienneBarbier EtienneBarbier force-pushed the fix_scrapeconfigs_relabeling branch 4 times, most recently from 73e2ddc to cae5447 Compare May 30, 2023 17:45
@EtienneBarbier
Copy link
Contributor Author

@philipgough Rebase done.

@philipgough
Copy link
Contributor

@EtienneBarbier I think we might want to limit this PR to just commit cae5447 as opposed to the unrelated tests too!

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>
@philipgough philipgough merged commit 6ae0250 into prometheus-operator:release-0.65 May 31, 2023
16 checks passed
philipgough added a commit that referenced this pull request May 31, 2023
* Fix relabelings for ScrapeConfig (#5611)

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>

* chore: Prep for release 0.65.2 (#5622)

* test: Add tests for ScrapeConfig relabelling

---------

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>
Co-authored-by: Etienne Barbier <etienne.barbier@atos.net>
mcbenjemaa pushed a commit to mcbenjemaa/prometheus-operator that referenced this pull request Jul 14, 2023
* Fix relabelings for ScrapeConfig (prometheus-operator#5611)

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>

* chore: Prep for release 0.65.2 (prometheus-operator#5622)

* test: Add tests for ScrapeConfig relabelling

---------

Signed-off-by: EtienneBarbier <etienne.barbier@atos.net>
Co-authored-by: Etienne Barbier <etienne.barbier@atos.net>
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.

Issue with new CRD scrapeConfigs
4 participants