func isResourceBestEffort(container *api.Container, resource api.ResourceName) bool {
	req, hasReq := container.Resources.Requests[resource]
	return !hasReq || req.Value() == 0
}
isResourceBestEffort returns true if the container's resource requirements are best-effort.
package util
import (
	"k8s.io/kubernetes/pkg/api"
)
const (
	Guaranteed = "Guaranteed"
	Burstable  = "Burstable"
	BestEffort = "BestEffort"
)
func isResourceGuaranteed(container *api.Container, resource api.ResourceName) bool {
	req, hasReq := container.Resources.Requests[resource]
	limit, hasLimit := container.Resources.Limits[resource]
	if !hasReq || !hasLimit {
		return false
	}
	return req.Cmp(limit) == 0 && req.Value() != 0
}