package
1.2.0-alpha.4
Repository: https://github.com/ericchiang/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.
PodHasRequests verifies that each container in the pod has an explicit request that is non-zero for a named resource.
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.