Merge pull request #8664 from tstromberg/none-timeout
none: Fix 'minikube delete' issues when the apiserver is downpull/8468/head
commit
ca9040b42b
|
@ -205,7 +205,13 @@ func apiServerHealthz(hostname string, port int) (state.State, error) {
|
|||
return nil
|
||||
}
|
||||
|
||||
err = retry.Local(check, 8*time.Second)
|
||||
err = retry.Local(check, 5*time.Second)
|
||||
|
||||
// Don't propagate 'Stopped' upwards as an error message, as clients may interpret the err
|
||||
// as an inability to get status. We need it for retry.Local, however.
|
||||
if st == state.Stopped {
|
||||
return st, nil
|
||||
}
|
||||
return st, err
|
||||
}
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ func Local(callback func() error, maxTime time.Duration) error {
|
|||
b.InitialInterval = 250 * time.Millisecond
|
||||
b.RandomizationFactor = 0.25
|
||||
b.Multiplier = 1.25
|
||||
b.MaxElapsedTime = maxTime
|
||||
return backoff.RetryNotify(callback, b, notify)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue