Merge pull request #11049 from rifelpet/validate-flap

cluster validation - allow flapping of validation errors
This commit is contained in:
Kubernetes Prow Robot 2021-03-14 07:53:03 -07:00 committed by GitHub
commit 45c2333400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -217,8 +217,9 @@ func RunValidateCluster(ctx context.Context, f *util.Factory, cmd *cobra.Command
return result, nil
}
} else {
if options.wait > 0 && consecutive == 0 {
if options.wait > 0 {
klog.Warningf("(will retry): cluster not yet healthy")
consecutive = 0
time.Sleep(pollInterval)
continue
} else {