Merge pull request #87819 from mortent/SerialFlakyPDBTests

Make DisruptionController eviction tests serial to avoid flakes
This commit is contained in:
Kubernetes Prow Robot 2020-02-11 23:14:55 -08:00 committed by GitHub
commit c9d4257cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,14 @@ var _ = SIGDescribe("DisruptionController", func() {
if c.shouldDeny {
expectation = "should not allow an eviction"
}
ginkgo.It(fmt.Sprintf("evictions: %s => %s", c.description, expectation), func() {
// tests with exclusive set to true relies on HostPort to make sure
// only one pod from the replicaset is assigned to each node. This
// requires these tests to be run serially.
var serial string
if c.exclusive {
serial = " [Serial]"
}
ginkgo.It(fmt.Sprintf("evictions: %s => %s%s", c.description, expectation, serial), func() {
if c.skipForBigClusters {
e2eskipper.SkipUnlessNodeCountIsAtMost(bigClusterSize - 1)
}