From 07e8216e98849ea57271dda0400de7c68f17b158 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Thu, 12 Oct 2023 11:26:27 +0200 Subject: [PATCH] do not inherit tier label across different rules --- controllers/labels.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/labels.go b/controllers/labels.go index ef36d0a1..7c8b46a5 100644 --- a/controllers/labels.go +++ b/controllers/labels.go @@ -125,8 +125,9 @@ func (r *PrometheusRuleReconciler) labelOptsWithCCloudDefaults( opts.DefaultService = newIfCurrentEmpty(opts.DefaultService, s) t, s := mostCommonTierAndServiceCombo(rg) - opts.DefaultTier = newIfCurrentEmpty(opts.DefaultTier, t) + // opts.DefaultTier = newIfCurrentEmpty(opts.DefaultTier, t) // the `tier` label is sort of deprecated, do not inherit it between rules opts.DefaultService = newIfCurrentEmpty(opts.DefaultService, s) + _ = t return opts, nil }