Increase timeout polling for secrets-encrypt metrics

Signed-off-by: Derek Nola <derek.nola@suse.com>
pull/10873/head
Derek Nola 3 months ago
parent 2005e8679e
commit 17201d4eb9

@ -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
// 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) {
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)
if err != nil {
return true, err

Loading…
Cancel
Save