update prometheus dependencies (#5520)
Signed-off-by: junot <junotxiang@kubesphere.io>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user