From b9b2ea6adb0f9d7663573a56559fa8eea509e02b Mon Sep 17 00:00:00 2001 From: Peter Braun Date: Tue, 26 Mar 2024 13:39:12 +0100 Subject: [PATCH] fix: time multiplier was not applied if the timeout was in the spec --- controllers/client/grafana_client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/client/grafana_client.go b/controllers/client/grafana_client.go index d51254739..a69343a48 100644 --- a/controllers/client/grafana_client.go +++ b/controllers/client/grafana_client.go @@ -177,7 +177,7 @@ func NewGeneratedGrafanaClient(ctx context.Context, c client.Client, grafana *v1 timeout = 0 } } else { - timeout = time.Second * 10 + timeout = 10 } credentials, err := getAdminCredentials(ctx, c, grafana) @@ -194,7 +194,7 @@ func NewGeneratedGrafanaClient(ctx context.Context, c client.Client, grafana *v1 client := &http.Client{ Transport: transport, - Timeout: timeout, + Timeout: timeout * time.Second, } cfg := &genapi.TransportConfig{