From 6514dd656c86d942d36eb4028abee68a7e56e24c Mon Sep 17 00:00:00 2001 From: Shyam Jeedigunta Date: Tue, 15 May 2018 17:30:59 +0200 Subject: [PATCH] Auto-calculate allowed-not-ready-nodes in test framework --- test/e2e/framework/test_context.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/e2e/framework/test_context.go b/test/e2e/framework/test_context.go index 25b86b98a8a..70885bb0380 100644 --- a/test/e2e/framework/test_context.go +++ b/test/e2e/framework/test_context.go @@ -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 + } }