package resourcequotacontroller
import "k8s.io/kubernetes/pkg/controller/resourcequota"
resourcequota contains a controller that makes resource quota usage observations
Index ¶
- func FilterQuotaPods(pods []api.Pod) []*api.Pod
- func IsPodCPUUnbounded(pod *api.Pod) bool
- func IsPodMemoryUnbounded(pod *api.Pod) bool
- func PodCPU(pod *api.Pod) *resource.Quantity
- func PodMemory(pod *api.Pod) *resource.Quantity
- type ResourceQuotaController
Functions ¶
func FilterQuotaPods ¶
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
func IsPodCPUUnbounded ¶
IsPodCPUUnbounded returns true if the cpu use is unbounded for any container in pod
func IsPodMemoryUnbounded ¶
IsPodMemoryUnbounded returns true if the memory use is unbounded for any container in pod
func PodCPU ¶
PodCPU computes total cpu usage of a pod
func PodMemory ¶
PodMemory computes the memory usage of a pod
Types ¶
type ResourceQuotaController ¶
type ResourceQuotaController struct {
// contains filtered or unexported fields
}
ResourceQuotaController is responsible for tracking quota usage status in the system
func NewResourceQuotaController ¶
func NewResourceQuotaController(kubeClient client.Interface) *ResourceQuotaController
NewResourceQuotaController creates a new ResourceQuotaController
func (*ResourceQuotaController) Run ¶
func (rm *ResourceQuotaController) Run(period time.Duration)
Run begins watching and syncing.
Source Files ¶
doc.go resource_quota_controller.go
- Version
- v1.1.0-alpha.1
- Published
- Aug 28, 2015
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 3 minutes ago –
Tools for package owners.