mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
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 <pjpires@gmail.com>
This commit is contained in:
parent
20a1a647f3
commit
d2edb8af9e
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user