mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
small comment the ephemeral containers are not accounted for the QoS calculation
This commit is contained in:
parent
ae23b0c11b
commit
b517d640a4
@ -40,6 +40,7 @@ func GetPodQOS(pod *core.Pod) core.PodQOSClass {
|
|||||||
limits := core.ResourceList{}
|
limits := core.ResourceList{}
|
||||||
zeroQuantity := resource.MustParse("0")
|
zeroQuantity := resource.MustParse("0")
|
||||||
isGuaranteed := true
|
isGuaranteed := true
|
||||||
|
// note, ephemeral containers are not considered for QoS as they cannot define resources
|
||||||
allContainers := []core.Container{}
|
allContainers := []core.Container{}
|
||||||
allContainers = append(allContainers, pod.Spec.Containers...)
|
allContainers = append(allContainers, pod.Spec.Containers...)
|
||||||
allContainers = append(allContainers, pod.Spec.InitContainers...)
|
allContainers = append(allContainers, pod.Spec.InitContainers...)
|
||||||
|
@ -37,6 +37,7 @@ func GetPodQOS(pod *core.Pod) core.PodQOSClass {
|
|||||||
limits := core.ResourceList{}
|
limits := core.ResourceList{}
|
||||||
zeroQuantity := resource.MustParse("0")
|
zeroQuantity := resource.MustParse("0")
|
||||||
isGuaranteed := true
|
isGuaranteed := true
|
||||||
|
// note, ephemeral containers are not considered for QoS as they cannot define resources
|
||||||
allContainers := []core.Container{}
|
allContainers := []core.Container{}
|
||||||
allContainers = append(allContainers, pod.Spec.Containers...)
|
allContainers = append(allContainers, pod.Spec.Containers...)
|
||||||
allContainers = append(allContainers, pod.Spec.InitContainers...)
|
allContainers = append(allContainers, pod.Spec.InitContainers...)
|
||||||
|
Loading…
Reference in New Issue
Block a user