Commit 17201d4e authored by Derek Nola's avatar Derek Nola

Increase timeout polling for secrets-encrypt metrics

parent 2005e867
...@@ -251,7 +251,7 @@ func GetEncryptionConfigMetrics(runtime *config.ControlRuntime, initialMetrics b ...@@ -251,7 +251,7 @@ func GetEncryptionConfigMetrics(runtime *config.ControlRuntime, initialMetrics b
// This is wrapped in a poller because on startup no metrics exist. Its only after the encryption config // This is wrapped in a poller because on startup no metrics exist. Its only after the encryption config
// 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, 80*time.Second, true, func(ctx context.Context) (bool, error) {
data, err := restClient.Get().AbsPath("/metrics").DoRaw(ctx) 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