mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Make DisruptionController eviction tests serial to avoid flakes
This commit is contained in:
parent
a71586fac6
commit
95ddc029fa
@ -148,7 +148,14 @@ var _ = SIGDescribe("DisruptionController", func() {
|
|||||||
if c.shouldDeny {
|
if c.shouldDeny {
|
||||||
expectation = "should not allow an eviction"
|
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 {
|
if c.skipForBigClusters {
|
||||||
e2eskipper.SkipUnlessNodeCountIsAtMost(bigClusterSize - 1)
|
e2eskipper.SkipUnlessNodeCountIsAtMost(bigClusterSize - 1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user