mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
fix creating pod from file failure in scheduler-predicates
This commit is contained in:
@@ -696,7 +696,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
|
|||||||
|
|
||||||
By("Trying to launch a pod that with NodeAffinity setting as embedded JSON string in the annotation value.")
|
By("Trying to launch a pod that with NodeAffinity setting as embedded JSON string in the annotation value.")
|
||||||
labelPodName := "with-labels"
|
labelPodName := "with-labels"
|
||||||
testPodPath := string(framework.ReadOrDie("test/e2e/testing-manifests/node-selection/pod-with-node-affinity.yaml"))
|
testPodPath := "test/e2e/testing-manifests/node-selection/pod-with-node-affinity.yaml"
|
||||||
framework.RunKubectlOrDie("create", "-f", testPodPath, fmt.Sprintf("--namespace=%v", ns))
|
framework.RunKubectlOrDie("create", "-f", testPodPath, fmt.Sprintf("--namespace=%v", ns))
|
||||||
|
|
||||||
// check that pod got scheduled. We intentionally DO NOT check that the
|
// check that pod got scheduled. We intentionally DO NOT check that the
|
||||||
@@ -1211,7 +1211,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {
|
|||||||
|
|
||||||
By("Trying to launch a pod that with PodAffinity & PodAntiAffinity setting as embedded JSON string in the annotation value.")
|
By("Trying to launch a pod that with PodAffinity & PodAntiAffinity setting as embedded JSON string in the annotation value.")
|
||||||
labelPodName := "with-newlabels"
|
labelPodName := "with-newlabels"
|
||||||
testPodPath := string(framework.ReadOrDie("test/e2e/testing-manifests/node-selection/pos-with-node-affinity.yaml"))
|
testPodPath := "test/e2e/testing-manifests/node-selection/pod-with-pod-affinity.yaml"
|
||||||
framework.RunKubectlOrDie("create", "-f", testPodPath, fmt.Sprintf("--namespace=%v", ns))
|
framework.RunKubectlOrDie("create", "-f", testPodPath, fmt.Sprintf("--namespace=%v", ns))
|
||||||
|
|
||||||
// check that pod got scheduled. We intentionally DO NOT check that the
|
// check that pod got scheduled. We intentionally DO NOT check that the
|
||||||
|
Reference in New Issue
Block a user