update prometheus dependencies (#5520)

Signed-off-by: junot <junotxiang@kubesphere.io>
This commit is contained in:
junot
2023-02-14 09:46:22 +08:00
committed by GitHub
parent a979342f56
commit 2cd5f45d47
769 changed files with 81283 additions and 30511 deletions

View File

@@ -18,7 +18,7 @@ package expressions
import (
"github.com/prometheus-community/prom-label-proxy/injectproxy"
"github.com/prometheus/prometheus/pkg/labels"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql/parser"
)
@@ -32,7 +32,7 @@ func labelReplace(input, ns string) (string, error) {
return "", err
}
err = injectproxy.NewEnforcer(&labels.Matcher{
err = injectproxy.NewEnforcer(false, &labels.Matcher{
Type: labels.MatchEqual,
Name: "namespace",
Value: ns,