From d2edb8af9eb4b02249081b9c973cf8ed7d2f1ae4 Mon Sep 17 00:00:00 2001 From: Paulo Pires Date: Sun, 5 Nov 2017 16:01:17 +0000 Subject: [PATCH] fix scheduler predicates test that may violate DNS label rules This commit fixes an issue where in clusters which have FQDN as the node names, one of the scheduling predicates tests will fail because it will try and run a pod with a name that violates DNS-1123 rules. As an example, one such pod name could look like "filler-pod-kube-node-0.kubelet.mesos". Signed-off-by: Paulo Pires --- test/e2e/scheduling/predicates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/scheduling/predicates.go b/test/e2e/scheduling/predicates.go index 3c32b9fffde..19044d12c89 100644 --- a/test/e2e/scheduling/predicates.go +++ b/test/e2e/scheduling/predicates.go @@ -291,7 +291,7 @@ var _ = SIGDescribe("SchedulerPredicates [Serial]", func() { for nodeName, cpu := range nodeToAllocatableMap { requestedCPU := cpu * 7 / 10 fillerPods = append(fillerPods, createPausePod(f, pausePodConfig{ - Name: "filler-pod-" + nodeName, + Name: "filler-pod-" + string(uuid.NewUUID()), Resources: &v1.ResourceRequirements{ Limits: v1.ResourceList{ v1.ResourceCPU: *resource.NewMilliQuantity(requestedCPU, "DecimalSI"),