mirror of https://github.com/k3s-io/k3s
Merge pull request #47883 from bsalamat/e2e_test_cleanup
Automatic merge from submit-queue (batch tested with PRs 47883, 47179, 46966, 47982, 47945) Remove e2e test for least requested prioirty function **What this PR does / why we need it**: Deletes a flaky e2e test for "least requested" priority function of the scheduler. This priority function is tested more extensively in our unit tests. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #47769 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```pull/6/head
commit
80a5842623
|
@ -84,29 +84,6 @@ var _ = framework.KubeDescribe("SchedulerPriorities [Serial]", func() {
|
|||
Expect(err).NotTo(HaveOccurred())
|
||||
})
|
||||
|
||||
It("Pods should be scheduled to low resource use rate node", func() {
|
||||
//Make sure all the schedulable nodes are balanced (have the same cpu/mem usage ratio)
|
||||
By("Create pods on each node except the last one to raise cpu and memory usage to the same high level")
|
||||
var expectedNodeName string
|
||||
expectedNodeName = nodeList.Items[len(nodeList.Items)-1].Name
|
||||
nodes := nodeList.Items[:len(nodeList.Items)-1]
|
||||
// make the nodes except last have cpu,mem usage to 90%
|
||||
createBalancedPodForNodes(f, cs, ns, nodes, podRequestedResource, 0.9)
|
||||
By("Create a pod,pod should schedule to the least requested nodes")
|
||||
createPausePod(f, pausePodConfig{
|
||||
Name: "priority-least-requested",
|
||||
Labels: map[string]string{"name": "priority-least-requested"},
|
||||
Resources: podRequestedResource,
|
||||
})
|
||||
By("Wait for all the pods are running")
|
||||
err := f.WaitForPodRunning("priority-least-requested")
|
||||
framework.ExpectNoError(err)
|
||||
By("Verify the pod is scheduled to the expected node")
|
||||
testPod, err := cs.CoreV1().Pods(ns).Get("priority-least-requested", metav1.GetOptions{})
|
||||
framework.ExpectNoError(err)
|
||||
Expect(testPod.Spec.NodeName).Should(Equal(expectedNodeName))
|
||||
})
|
||||
|
||||
It("Pods created by ReplicationController should spread to different node", func() {
|
||||
By("Create a pod for each node to make the nodes have almost same cpu/mem usage ratio")
|
||||
|
||||
|
|
Loading…
Reference in New Issue