From 3ec086f6f7f0d9a1aaa357b0a59dfd06f2650030 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Tue, 23 Jul 2024 10:28:16 +0100 Subject: [PATCH] Update pkg/secretsencrypt/config.go Co-authored-by: Brad Davidson Signed-off-by: Will Andrews --- pkg/secretsencrypt/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/secretsencrypt/config.go b/pkg/secretsencrypt/config.go index 78213c19af..382a667311 100644 --- a/pkg/secretsencrypt/config.go +++ b/pkg/secretsencrypt/config.go @@ -241,7 +241,7 @@ func GetEncryptionConfigMetrics(runtime *config.ControlRuntime, initialMetrics b // is modified and the first reload occurs that the metrics are available. ctx := context.Background() err = wait.PollUntilContextTimeout(ctx, 5*time.Second, 60*time.Second, true, func(ctx context.Context) (bool, error) { - data, err := restClient.Get().AbsPath("/metrics").DoRaw(context.TODO()) + data, err := restClient.Get().AbsPath("/metrics").DoRaw(ctx) if err != nil { return true, err }