Keep validating after timeout when cluster is healthy

This commit is contained in:
Ciprian Hacman 2023-10-26 04:46:18 +03:00
parent de5291923c
commit eb5faec456
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ func RunValidateCluster(ctx context.Context, f *util.Factory, out io.Writer, opt
consecutive := 0
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")
}