Documentation ¶
Overview ¶
core contains modules that interface with the core api group
Index ¶
- func GetQuotaServiceType(service *v1.Service) v1.ServiceType
- func NewConfigMapEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewPersistentVolumeClaimEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
- func NewPodEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
- func NewRegistry(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Registry
- func NewReplicationControllerEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewResourceQuotaEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewSecretEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func NewServiceEvaluator(kubeClient clientset.Interface) quota.Evaluator
- func PodUsageFunc(obj runtime.Object) (api.ResourceList, error)
- func QuotaPod(pod *api.Pod) bool
- func QuotaServiceType(service *v1.Service) bool
- func QuotaV1Pod(pod *v1.Pod) bool
- func ResourceByStorageClass(storageClass string, resourceName api.ResourceName) api.ResourceName
- func V1ResourceByStorageClass(storageClass string, resourceName v1.ResourceName) v1.ResourceName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQuotaServiceType ¶ added in v1.4.5
func GetQuotaServiceType(service *v1.Service) v1.ServiceType
GetQuotaServiceType returns ServiceType if the service type is eligible to track against a quota, nor return ""
func NewConfigMapEvaluator ¶
NewConfigMapEvaluator returns an evaluator that can evaluate configMaps
func NewPersistentVolumeClaimEvaluator ¶
func NewPersistentVolumeClaimEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
NewPersistentVolumeClaimEvaluator returns an evaluator that can evaluate persistent volume claims if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
func NewPodEvaluator ¶
func NewPodEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
NewPodEvaluator returns an evaluator that can evaluate pods if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
func NewRegistry ¶
NewRegistry returns a registry that knows how to deal with core kubernetes resources If an informer factory is provided, evaluators will use them.
func NewReplicationControllerEvaluator ¶
NewReplicationControllerEvaluator returns an evaluator that can evaluate replication controllers
func NewResourceQuotaEvaluator ¶
NewResourceQuotaEvaluator returns an evaluator that can evaluate resource quotas
func NewSecretEvaluator ¶
NewSecretEvaluator returns an evaluator that can evaluate secrets
func NewServiceEvaluator ¶
NewServiceEvaluator returns an evaluator that can evaluate service quotas
func PodUsageFunc ¶
func PodUsageFunc(obj runtime.Object) (api.ResourceList, error)
PodUsageFunc knows how to measure usage associated with pods
func QuotaServiceType ¶
QuotaServiceType returns true if the service type is eligible to track against a quota
func QuotaV1Pod ¶ added in v1.7.0
QuotaV1Pod returns true if the pod is eligible to track against a quota if it's not in a terminal state according to its phase.
func ResourceByStorageClass ¶ added in v1.7.0
func ResourceByStorageClass(storageClass string, resourceName api.ResourceName) api.ResourceName
ResourceByStorageClass returns a quota resource name by storage class.
func V1ResourceByStorageClass ¶ added in v1.7.0
func V1ResourceByStorageClass(storageClass string, resourceName v1.ResourceName) v1.ResourceName
V1ResourceByStorageClass returns a quota resource name by storage class.
Types ¶
This section is empty.