Skip to content
Snippets Groups Projects
Unverified Commit 1ff5273f authored by Arunprasad Rajkumar's avatar Arunprasad Rajkumar
Browse files

Deprecate `thanosSelector` and keep until 0.10.0

parent 1fb864ec
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,8 @@ local defaults = { ...@@ -34,6 +34,8 @@ local defaults = {
_config: { _config: {
prometheusSelector: 'job="prometheus-' + defaults.name + '",namespace="' + defaults.namespace + '"', prometheusSelector: 'job="prometheus-' + defaults.name + '",namespace="' + defaults.namespace + '"',
prometheusName: '{{$labels.namespace}}/{{$labels.pod}}', prometheusName: '{{$labels.namespace}}/{{$labels.pod}}',
// TODO: remove `thanosSelector` after 0.10.0 release.
thanosSelector: '',
thanos: { thanos: {
targetGroups: { targetGroups: {
namespace: defaults.namespace, namespace: defaults.namespace,
...@@ -74,7 +76,8 @@ function(params) { ...@@ -74,7 +76,8 @@ function(params) {
(import 'github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet') + { (import 'github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet') + {
_config+:: p._config.mixin._config, _config+:: p._config.mixin._config,
targetGroups+: p._config.mixin._config.thanos.targetGroups, targetGroups+: p._config.mixin._config.thanos.targetGroups,
sidecar+: p._config.mixin._config.thanos.sidecar, // TODO: remove `_config.thanosSelector` after 0.10.0 release.
sidecar+: { selector: p._config.mixin._config.thanosSelector } + p._config.mixin._config.thanos.sidecar,
}, },
prometheusRule: { prometheusRule: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment