mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
[scheduling] Moved pod affinity and anti-affinity from annotations to api
fields. #25319
This commit is contained in:
@@ -484,7 +484,8 @@ func TestCriticalPrioritySorting(t *testing.T) {
|
||||
Requests: v1.ResourceList{
|
||||
"memory": resource.MustParse("90"),
|
||||
},
|
||||
}}}}
|
||||
}}},
|
||||
}
|
||||
pods := []*v1.Pod{
|
||||
podWithUidNameNsSpec("000000000", "newpod", "foo", spec),
|
||||
podWithUidNameNsSpec("987654321", "oldpod", "foo", spec),
|
||||
@@ -637,7 +638,8 @@ func TestHandleMemExceeded(t *testing.T) {
|
||||
Requests: v1.ResourceList{
|
||||
"memory": resource.MustParse("90"),
|
||||
},
|
||||
}}}}
|
||||
}}},
|
||||
}
|
||||
pods := []*v1.Pod{
|
||||
podWithUidNameNsSpec("123456789", "newpod", "foo", spec),
|
||||
podWithUidNameNsSpec("987654321", "oldpod", "foo", spec),
|
||||
|
||||
Reference in New Issue
Block a user