mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
pkg/metrics/provideres: delete fake value
This commit is contained in:
@@ -69,10 +69,6 @@ func NewPrometheusProvider(provider flaggerv1.MetricTemplateProvider, credential
|
||||
|
||||
// RunQuery executes the promQL query and returns the the first result as float64
|
||||
func (p *PrometheusProvider) RunQuery(query string) (float64, error) {
|
||||
if p.url.String() == "fake" {
|
||||
return 100, nil
|
||||
}
|
||||
|
||||
query = url.QueryEscape(p.trimQuery(query))
|
||||
u, err := url.Parse(fmt.Sprintf("./api/v1/query?query=%s", query))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user