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 accidentally broken thanosSelector after #1543 #1556

Merged

Conversation

arajkumar
Copy link
Contributor

@arajkumar arajkumar commented Dec 17, 2021

Previous PR #1543 which deprecated thanosSelector accidentally broke the
usage of it. This commit restores the old behaviour along with newly
introduced thanos config variable.

Signed-off-by: Arunprasad Rajkumar arajkuma@redhat.com

Description

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.

Type of change

What type of changes does your code introduce to the kube-prometheus? 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. Later this will be copied to the changelog file.


@arajkumar arajkumar changed the title Fix thanos sidecar selector Fix accidentally broken thanos sidecar selector after #1543 Dec 17, 2021
@arajkumar arajkumar changed the title Fix accidentally broken thanos sidecar selector after #1543 Fix accidentally broken thanosSelector after #1543 Dec 17, 2021
@@ -32,16 +32,17 @@ local defaults = {
mixin:: {
ruleLabels: {},
_config: {
local _config = self,
Copy link
Member

Choose a reason for hiding this comment

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

unused variable

Previous PR[1] which deprecated `thanosSelector` accidentally broke the
usage of it. This commit restores the old behaviour along with newly
introduced `thanos` config variable.

[1] prometheus-operator#1543

Co-authored-by: Pawe? Krupa <pawel@krupa.net.pl>
Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
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

@paulfantom paulfantom merged commit b68f3f0 into prometheus-operator:main Jan 27, 2022
This pull request was closed.
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.

3 participants