kubernetesk8s.io/kubernetes/pkg/resourcequota Index | Files

package resourcequota

import "k8s.io/kubernetes/pkg/resourcequota"

resourcequota contains a controller that makes resource quota usage observations

Index

Functions

func FilterQuotaPods

func FilterQuotaPods(pods []api.Pod) []*api.Pod

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

func IsPodCPUUnbounded(pod *api.Pod) bool

IsPodCPUUnbounded returns true if the cpu use is unbounded for any container in pod

func IsPodMemoryUnbounded

func IsPodMemoryUnbounded(pod *api.Pod) bool

IsPodMemoryUnbounded returns true if the memory use is unbounded for any container in pod

func PodCPU

func PodCPU(pod *api.Pod) *resource.Quantity

PodCPU computes total cpu usage of a pod

func PodMemory

func PodMemory(pod *api.Pod) *resource.Quantity

PodMemory computes the memory usage of a pod

Types

type ResourceQuotaManager

type ResourceQuotaManager struct {
	// contains filtered or unexported fields
}

ResourceQuotaManager is responsible for tracking quota usage status in the system

func NewResourceQuotaManager

func NewResourceQuotaManager(kubeClient client.Interface) *ResourceQuotaManager

NewResourceQuotaManager creates a new ResourceQuotaManager

func (*ResourceQuotaManager) Run

func (rm *ResourceQuotaManager) Run(period time.Duration)

Run begins watching and syncing.

Source Files

doc.go resource_quota_controller.go

Version
v0.19.3
Published
Jun 22, 2015
Platform
js/wasm
Imports
9 packages
Last checked
32 seconds ago

Tools for package owners.