mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	e2e_node: do not relay on Kubelet automatic restart service under hugepages tests
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
This commit is contained in:
		@@ -337,16 +337,7 @@ var _ = SIGDescribe("HugePages [Serial] [Feature:HugePages][NodeSpecialFeature:H
 | 
			
		||||
			setHugepages()
 | 
			
		||||
 | 
			
		||||
			ginkgo.By("restarting kubelet to pick up pre-allocated hugepages")
 | 
			
		||||
			// stop the kubelet and wait until the server will restart it automatically
 | 
			
		||||
			stopKubelet()
 | 
			
		||||
			// wait until the kubelet health check will fail
 | 
			
		||||
			gomega.Eventually(func() bool {
 | 
			
		||||
				return kubeletHealthCheck(kubeletHealthCheckURL)
 | 
			
		||||
			}, time.Minute, time.Second).Should(gomega.BeFalse())
 | 
			
		||||
			// wait until the kubelet health check will pass
 | 
			
		||||
			gomega.Eventually(func() bool {
 | 
			
		||||
				return kubeletHealthCheck(kubeletHealthCheckURL)
 | 
			
		||||
			}, 2*time.Minute, 10*time.Second).Should(gomega.BeTrue())
 | 
			
		||||
			restartKubelet(true)
 | 
			
		||||
 | 
			
		||||
			waitForHugepages()
 | 
			
		||||
 | 
			
		||||
@@ -364,8 +355,7 @@ var _ = SIGDescribe("HugePages [Serial] [Feature:HugePages][NodeSpecialFeature:H
 | 
			
		||||
			releaseHugepages()
 | 
			
		||||
 | 
			
		||||
			ginkgo.By("restarting kubelet to pick up pre-allocated hugepages")
 | 
			
		||||
			// stop the kubelet and wait until the server will restart it automatically
 | 
			
		||||
			stopKubelet()
 | 
			
		||||
			restartKubelet(true)
 | 
			
		||||
 | 
			
		||||
			waitForHugepages()
 | 
			
		||||
		})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user