cleanup: add update notice in origin file & make it diff cleanly

This commit is contained in:
Paco Xu
2021-09-15 13:43:00 +08:00
parent 285e43d208
commit b74214ebcb
2 changed files with 12 additions and 11 deletions

View File

@@ -34,6 +34,7 @@ func isSupportedQoSComputeResource(name core.ResourceName) bool {
// 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.
// When this function is updated please also update staging/src/k8s.io/kubectl/pkg/util/qos/qos.go
func GetPodQOS(pod *core.Pod) core.PodQOSClass {
requests := core.ResourceList{}
limits := core.ResourceList{}