mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Add UT test in qos if pod has one container
This commit is contained in:
parent
15b7d4666d
commit
6b3a3452be
@ -65,6 +65,12 @@ func TestGetPodQOS(t *testing.T) {
|
|||||||
}),
|
}),
|
||||||
expected: v1.PodQOSBestEffort,
|
expected: v1.PodQOSBestEffort,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
pod: newPod("best-effort", []v1.Container{
|
||||||
|
newContainer("best-effort", getResourceList("", ""), getResourceList("", "")),
|
||||||
|
}),
|
||||||
|
expected: v1.PodQOSBestEffort,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
pod: newPod("best-effort-best-effort-with-gpu", []v1.Container{
|
pod: newPod("best-effort-best-effort-with-gpu", []v1.Container{
|
||||||
newContainer("best-effort", getResourceList("", ""), addResource("nvidia-gpu", "2", getResourceList("", ""))),
|
newContainer("best-effort", getResourceList("", ""), addResource("nvidia-gpu", "2", getResourceList("", ""))),
|
||||||
|
Loading…
Reference in New Issue
Block a user