From 3eb40ffbb0b4929be79769bada3d42c2809d4a3c Mon Sep 17 00:00:00 2001 From: Vinay Kulkarni Date: Mon, 7 Aug 2023 10:52:26 -0700 Subject: [PATCH] Update pkg/apis/core/helper/qos/qos.go Co-authored-by: Itamar Holder <77444623+iholder101@users.noreply.github.com> Kubernetes-commit: 40b604e374144351eac463e7077fdb1903f5a033 --- pkg/util/qos/qos.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/util/qos/qos.go b/pkg/util/qos/qos.go index 16a8846a..68b1b907 100644 --- a/pkg/util/qos/qos.go +++ b/pkg/util/qos/qos.go @@ -37,7 +37,8 @@ func GetPodQOS(pod *core.Pod) core.PodQOSClass { return ComputePodQOS(pod) } -// ComputePodQOS evaluates the list of containers to determine a pod's QoS class. This function is expensive. +// ComputePodQOS evaluates the list of containers to determine a pod's QoS class. This function is more +// expensive than GetPodQOS which should be used for pods having a non-empty .Status.QOSClass. // A pod is besteffort if none of its containers have specified any requests or limits. // A pod is guaranteed only when requests and limits are specified for all the containers and they are equal. // A pod is burstable if limits and requests do not match across all containers.