mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Ensure images are pulled after eviction tests
This commit is contained in:
@@ -38,6 +38,14 @@ var _ = SIGDescribe("SystemNodeCriticalPod [Slow] [Serial] [Disruptive] [NodeFea
|
|||||||
// this test only manipulates pods in kube-system
|
// this test only manipulates pods in kube-system
|
||||||
f.SkipNamespaceCreation = true
|
f.SkipNamespaceCreation = true
|
||||||
|
|
||||||
|
ginkgo.AfterEach(func() {
|
||||||
|
if framework.TestContext.PrepullImages {
|
||||||
|
// The test may cause the prepulled images to be evicted,
|
||||||
|
// prepull those images again to ensure this test not affect following tests.
|
||||||
|
PrePullAllImages()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
ginkgo.Context("when create a system-node-critical pod", func() {
|
ginkgo.Context("when create a system-node-critical pod", func() {
|
||||||
tempSetCurrentKubeletConfig(f, func(initialConfig *kubeletconfig.KubeletConfiguration) {
|
tempSetCurrentKubeletConfig(f, func(initialConfig *kubeletconfig.KubeletConfiguration) {
|
||||||
diskConsumed := resource.MustParse("200Mi")
|
diskConsumed := resource.MustParse("200Mi")
|
||||||
|
Reference in New Issue
Block a user