package resourcequota
import "k8s.io/kubernetes/pkg/resourcequota"
resourcequota contains a controller that makes resource quota usage observations
Index ¶
- func PodCPU(pod *api.Pod) *resource.Quantity
- func PodMemory(pod *api.Pod) *resource.Quantity
- type ResourceQuotaManager
Functions ¶
func PodCPU ¶
PodCPU computes total cpu usage of a pod
func PodMemory ¶
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.10.1
- Published
- Feb 5, 2015
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 14 minutes ago –
Tools for package owners.