mirror of https://github.com/kubernetes/kops.git
Keep validating after timeout when cluster is healthy
This commit is contained in:
parent
de5291923c
commit
eb5faec456
|
|
@ -173,7 +173,7 @@ func RunValidateCluster(ctx context.Context, f *util.Factory, out io.Writer, opt
|
||||||
|
|
||||||
consecutive := 0
|
consecutive := 0
|
||||||
for {
|
for {
|
||||||
if options.wait > 0 && time.Now().After(timeout) {
|
if options.wait > 0 && time.Now().After(timeout) && consecutive == 0 {
|
||||||
return nil, fmt.Errorf("wait time exceeded during validation")
|
return nil, fmt.Errorf("wait time exceeded during validation")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue