-
Notifications
You must be signed in to change notification settings - Fork 2k
Deprecate thanosSelector
and expose mixin._config.thanos
config variable for thanos sidecar
#1543
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
Deprecate thanosSelector
and expose mixin._config.thanos
config variable for thanos sidecar
#1543
Conversation
eef8e74
to
6a43cda
Compare
targetGroup
config variable6a43cda
to
5a2b8b5
Compare
thanosSelector
and expose mixin._config.thanos
config variable for thanos sidecar
…able for thanos sidecar This commit removes existing `thanosSelector` and exposes a single config variable `mixin._config.thanos` to customize thanos sidecar mixins. It follows same structure as https://github.com/thanos-io/thanos/blob/d2d74dac9878f633f1fb0e253bcc0b1cdea376d3/mixin/config.libsonnet Signed-off-by: Arunprasad Rajkumar <[email protected]>
5a2b8b5
to
1fb864e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be good to keep it backward compatible just for now and remove it after 0.10.0.
We already have a few cases of config which will need to be deprecated after 0.10.0, so writing all those cases in one migration doc should be easier for users than going through PRs (we don't have changelog yet).
Signed-off-by: Arunprasad Rajkumar <[email protected]>
thanosSelector
and expose mixin._config.thanos
config variable for thanos sidecarthanosSelector
and expose mixin._config.thanos
config variable for thanos sidecar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@paulfantom Can you please merge this? Thank you. |
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 Signed-off-by: Arunprasad Rajkumar <[email protected]>
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 <[email protected]> Signed-off-by: Arunprasad Rajkumar <[email protected]>
Description
This commit deprecates existing
thanosSelector
and exposes a single config variablemixin._config.thanos
to customize thanos sidecar mixins. It follows same structure as https://github.com/thanos-io/thanos/blob/d2d74dac9878f633f1fb0e253bcc0b1cdea376d3/mixin/config.libsonnetSigned-off-by: Arunprasad Rajkumar [email protected]
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.