|
|
|
@ -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
|
|
|
|
|