mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 05:40:42 +00:00 
			
		
		
		
	Auto-calculate allowed-not-ready-nodes in test framework
This commit is contained in:
		| @@ -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 | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user