package
1.2.0-alpha.3
Repository: https://github.com/suhasanand/kubernetes.git
Documentation: pkg.go.dev
# Functions
FilterQuotaPods eliminates pods that no longer have a cost against the quota pods that have a restart policy of always are always returned pods that are in a failed state, but have a restart policy of on failure are always returned pods that are not in a success state or a failure state are included in quota.
NewResourceQuotaController creates a new ResourceQuotaController.
PodCPU computes total cpu limit across all containers in pod TODO: Remove this once the mesos scheduler becomes request aware.
PodHasRequests verifies that each container in the pod has an explicit request that is non-zero for a named resource.
PodMemory computes total memory limit across all containers in a pod TODO: Remove this once the mesos scheduler becomes request aware.
PodRequests returns sum of each resource request across all containers in pod.
PodsRequests returns sum of each resource request for each pod in list If a given pod in the list does not have a request for the named resource, we log the error but still attempt to get the most representative count.
# Structs
ResourceQuotaController is responsible for tracking quota usage status in the system.