// Whether to enable the QoS Cgroup Hierarchy or not
// Whether to enable the QoS Cgroup Hierarchy or not
CgroupsPerQOSbool
CgroupsPerQOSbool
// The hard eviction thresholds
EvictionHardstring
}
}
typeCloudConfigstruct{
typeCloudConfigstruct{
...
@@ -150,4 +152,5 @@ func RegisterClusterFlags() {
...
@@ -150,4 +152,5 @@ func RegisterClusterFlags() {
funcRegisterNodeFlags(){
funcRegisterNodeFlags(){
flag.StringVar(&TestContext.NodeName,"node-name","","Name of the node to run tests on (node e2e suite only).")
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.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.")