core

package
v1.8.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

core contains modules that interface with the core api group

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQuotaServiceType added in v1.4.0

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

func PodUsageFunc(obj runtime.Object, clock clock.Clock) (api.ResourceList, error)

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

func QuotaPod(pod *api.Pod, clock clock.Clock) bool

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

func QuotaServiceType(service *v1.Service) bool

QuotaServiceType returns true if the service type is eligible to track against a quota

func QuotaV1Pod added in v1.6.0

func QuotaV1Pod(pod *v1.Pod, clock clock.Clock) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL