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, f informers.SharedInformerFactory) 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, f informers.SharedInformerFactory) quota.Evaluator
- func NewResourceQuotaEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
- func NewSecretEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
- func NewServiceEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
- func PodUsageFunc(obj runtime.Object, clock clock.Clock) (api.ResourceList, error)
- func QuotaPod(pod *api.Pod, clock clock.Clock) bool
- func QuotaServiceType(service *v1.Service) bool
- func QuotaV1Pod(pod *v1.Pod, clock clock.Clock) 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.1
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 ¶
func NewConfigMapEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
NewConfigMapEvaluator returns an evaluator that can evaluate configMaps if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
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, clock clock.Clock) 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 ¶
func NewReplicationControllerEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
NewReplicationControllerEvaluator returns an evaluator that can evaluate replicationControllers if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
func NewResourceQuotaEvaluator ¶
func NewResourceQuotaEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
NewResourceQuotaEvaluator returns an evaluator that can evaluate resourceQuotas if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
func NewSecretEvaluator ¶
func NewSecretEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
NewSecretEvaluator returns an evaluator that can evaluate secrets if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
func NewServiceEvaluator ¶
func NewServiceEvaluator(kubeClient clientset.Interface, f informers.SharedInformerFactory) quota.Evaluator
NewServiceEvaluator returns an evaluator that can evaluate services if the specified shared informer factory is not nil, evaluator may use it to support listing functions.
func PodUsageFunc ¶
PodUsageFunc returns the quota usage for a pod. A pod is charged for quota if the following are not true.
- pod has a terminal phase (failed or succeeded)
- pod has been marked for deletion and grace period has expired
func QuotaPod ¶
QuotaPod returns true if the pod is eligible to track against a quota A pod is eligible for quota, unless any of the following are true:
- pod has a terminal phase (failed or succeeded)
- pod has been marked for deletion and grace period has expired.
func QuotaServiceType ¶ added in v1.3.0
QuotaServiceType returns true if the service type is eligible to track against a quota
func QuotaV1Pod ¶ added in v1.6.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.6.0
func ResourceByStorageClass(storageClass string, resourceName api.ResourceName) api.ResourceName
ResourceByStorageClass returns a quota resource name by storage class.
func V1ResourceByStorageClass ¶ added in v1.6.0
func V1ResourceByStorageClass(storageClass string, resourceName v1.ResourceName) v1.ResourceName
V1ResourceByStorageClass returns a quota resource name by storage class.
Types ¶
This section is empty.