mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-05 02:39:37 +00:00
Update pkg/secretsencrypt/config.go
Co-authored-by: Brad Davidson <brad@oatmail.org> Signed-off-by: Will Andrews <will7989@hotmail.com>
This commit is contained in:
committed by
Brad Davidson
parent
e4f3cc7b54
commit
3ec086f6f7
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user