1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 03:38:43 +00:00

chore: fix build after prom-label-proxy bump

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2024-06-17 10:22:54 +02:00
parent 92f590681e
commit d7ecb439fa
No known key found for this signature in database
GPG key ID: 0190A66C0A10FC4F

View file

@ -119,7 +119,7 @@ func (l *Labeler) EnforceNamespaceLabel(rule *monitoringv1.PrometheusRule) error
if err != nil {
return fmt.Errorf("failed to parse promql expression: %w", err)
}
enforcer := injectproxy.NewEnforcer(false, &labels.Matcher{
enforcer := injectproxy.NewPromQLEnforcer(false, &labels.Matcher{
Name: l.enforcedNsLabel,
Type: labels.MatchEqual,
Value: rule.Namespace,