kubernetes: k8s.io/kubernetes/pkg/quota/v1/evaluator/core Index | Files

package core

import "k8s.io/kubernetes/pkg/quota/v1/evaluator/core"

Package core contains modules that interface with the core api group

Index

Package Files

doc.go persistent_volume_claims.go pods.go registry.go services.go

func GetQuotaServiceType Uses

func GetQuotaServiceType(service *corev1.Service) corev1.ServiceType

GetQuotaServiceType returns ServiceType if the service type is eligible to track against a quota, nor return ""

func NewEvaluators Uses

func NewEvaluators(f quota.ListerForResourceFunc) []quota.Evaluator

NewEvaluators returns the list of static evaluators that manage more than counts

func NewPersistentVolumeClaimEvaluator Uses

func NewPersistentVolumeClaimEvaluator(f quota.ListerForResourceFunc) quota.Evaluator

NewPersistentVolumeClaimEvaluator returns an evaluator that can evaluate persistent volume claims

func NewPodEvaluator Uses

func NewPodEvaluator(f quota.ListerForResourceFunc, clock clock.Clock) quota.Evaluator

NewPodEvaluator returns an evaluator that can evaluate pods

func NewServiceEvaluator Uses

func NewServiceEvaluator(f quota.ListerForResourceFunc) quota.Evaluator

NewServiceEvaluator returns an evaluator that can evaluate services.

func PodUsageFunc Uses

func PodUsageFunc(obj runtime.Object, clock clock.Clock) (corev1.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 QuotaV1Pod Uses

func QuotaV1Pod(pod *corev1.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 V1ResourceByStorageClass Uses

func V1ResourceByStorageClass(storageClass string, resourceName corev1.ResourceName) corev1.ResourceName

V1ResourceByStorageClass returns a quota resource name by storage class.

Package core imports 19 packages (graph) and is imported by 36 packages. Updated 2019-11-17. Refresh now. Tools for package owners.