pull/12231/merge
Mike Mayo 1 year ago committed by GitHub
commit 95a559d750
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -49,6 +49,11 @@ type waiter struct {
func (w *waiter) waitForResources(created ResourceList) error {
w.log("beginning wait for %d resources with timeout of %v", len(created), w.timeout)
// Set a default timeout of 5 minutes
if w.timeout == 0 {
w.timeout = time.Minute * 5
}
ctx, cancel := context.WithTimeout(context.Background(), w.timeout)
defer cancel()
@ -103,6 +108,11 @@ func (w *waiter) isRetryableHTTPStatusCode(httpStatusCode int32) bool {
func (w *waiter) waitForDeletedResources(deleted ResourceList) error {
w.log("beginning wait for %d resources to be deleted with timeout of %v", len(deleted), w.timeout)
// Set a default timeout of 5 minutes
if w.timeout == 0 {
w.timeout = time.Minute * 5
}
ctx, cancel := context.WithTimeout(context.Background(), w.timeout)
defer cancel()

Loading…
Cancel
Save