Merge pull request #63870 from shyamjvs/autocalculate-allowed-not-ready-nodes

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Auto-calculate allowed-not-ready-nodes in test framework

Actually we (sig-scalability) are pretty much the only users of this flag.
This reduces the overhead of having to provide its value based on num-nodes each time we run our tests.

/cc @wojtek-t 

```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2018-05-16 02:36:59 -07:00 committed by GitHub
commit 8c240523ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,4 +374,8 @@ func AfterReadingAllFlags(t *TestContextType) {
t.Host = defaultHost
}
}
// Allow 1% of nodes to be unready (statistically) - relevant for large clusters.
if t.AllowedNotReadyNodes == 0 {
t.AllowedNotReadyNodes = t.CloudConfig.NumNodes / 100
}
}