[refactor] fold PreemptionExecutionPath into the existing top-level SIGDescribe

This commit is contained in:
Pulkit Goyal 2020-02-24 13:49:18 +05:30
parent add2e8b4d0
commit 10805e0452

View File

@ -416,13 +416,11 @@ var _ = SIGDescribe("SchedulerPreemption [Serial]", func() {
} }
}) })
}) })
})
// construct a fakecpu so as to set it to status of Node object ginkgo.Context("PreemptionExecutionPath", func() {
// otherwise if we update CPU/Memory/etc, those values will be corrected back by kubelet // construct a fakecpu so as to set it to status of Node object
var fakecpu v1.ResourceName = "example.com/fakecpu" // otherwise if we update CPU/Memory/etc, those values will be corrected back by kubelet
var fakecpu v1.ResourceName = "example.com/fakecpu"
var _ = SIGDescribe("PreemptionExecutionPath", func() {
var cs clientset.Interface var cs clientset.Interface
var node *v1.Node var node *v1.Node
var ns, nodeHostNameLabel string var ns, nodeHostNameLabel string
@ -639,6 +637,7 @@ var _ = SIGDescribe("PreemptionExecutionPath", func() {
} }
} }
}) })
})
}) })
type pauseRSConfig struct { type pauseRSConfig struct {