Commit 3ec086f6 authored by Will Andrews's avatar Will Andrews Committed by Brad Davidson

Update pkg/secretsencrypt/config.go

parent e4f3cc7b
...@@ -241,7 +241,7 @@ func GetEncryptionConfigMetrics(runtime *config.ControlRuntime, initialMetrics b ...@@ -241,7 +241,7 @@ func GetEncryptionConfigMetrics(runtime *config.ControlRuntime, initialMetrics b
// is modified and the first reload occurs that the metrics are available. // is modified and the first reload occurs that the metrics are available.
ctx := context.Background() ctx := context.Background()
err = wait.PollUntilContextTimeout(ctx, 5*time.Second, 60*time.Second, true, func(ctx context.Context) (bool, error) { 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 { if err != nil {
return true, err return true, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment