Added an node e2e test for pod evictions due to disk pressure.

This commit is contained in:
Ron Lai
2016-07-28 12:05:59 -07:00
committed by bindata-mockuser
parent a3e339b6d6
commit adf6b6ddf0
4 changed files with 199 additions and 2 deletions

View File

@@ -71,6 +71,8 @@ type TestContextType struct {
NodeName string
// Whether to enable the QoS Cgroup Hierarchy or not
CgroupsPerQOS bool
// The hard eviction thresholds
EvictionHard string
}
type CloudConfig struct {
@@ -150,4 +152,5 @@ func RegisterClusterFlags() {
func RegisterNodeFlags() {
flag.StringVar(&TestContext.NodeName, "node-name", "", "Name of the node to run tests on (node e2e suite only).")
flag.BoolVar(&TestContext.CgroupsPerQOS, "cgroups-per-qos", false, "Enable creation of QoS cgroup hierarchy, if true top level QoS and pod cgroups are created.")
flag.StringVar(&TestContext.EvictionHard, "eviction-hard", "", "The hard eviction thresholds. If set, pods get evicted when the specified resources drop below the thresholds.")
}