|
|
|
@ -50,7 +50,7 @@ func (w *waiter) waitForResources(created ResourceList) error {
|
|
|
|
|
ctx, cancel := context.WithTimeout(context.Background(), w.timeout)
|
|
|
|
|
defer cancel()
|
|
|
|
|
|
|
|
|
|
return wait.PollUntilContextCancel(ctx, 2*time.Second, true, func(ctx context.Context) (bool, error) {
|
|
|
|
|
return wait.PollUntilContextCancel(ctx, 8*time.Second, true, func(ctx context.Context) (bool, error) {
|
|
|
|
|
for _, v := range created {
|
|
|
|
|
ready, err := w.c.IsReady(ctx, v)
|
|
|
|
|
if !ready || err != nil {
|
|
|
|
@ -68,7 +68,7 @@ func (w *waiter) waitForDeletedResources(deleted ResourceList) error {
|
|
|
|
|
ctx, cancel := context.WithTimeout(context.Background(), w.timeout)
|
|
|
|
|
defer cancel()
|
|
|
|
|
|
|
|
|
|
return wait.PollUntilContextCancel(ctx, 2*time.Second, true, func(ctx context.Context) (bool, error) {
|
|
|
|
|
return wait.PollUntilContextCancel(ctx, 8*time.Second, true, func(ctx context.Context) (bool, error) {
|
|
|
|
|
for _, v := range deleted {
|
|
|
|
|
err := v.Get()
|
|
|
|
|
if err == nil || !apierrors.IsNotFound(err) {
|
|
|
|
|