package
1.9.0-alpha.1
Repository: https://github.com/easeway/kubernetes.git
Documentation: pkg.go.dev

# Functions

GetQuotaServiceType returns ServiceType if the service type is eligible to track against a quota, nor return "".
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.
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.
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.
NewRegistry returns a registry that knows how to deal with core kubernetes resources If an informer factory is provided, evaluators will use them.
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.
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.
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.
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.
PodUsageFunc returns the quota usage for a pod.
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.
QuotaServiceType returns true if the service type is eligible to track against a quota.
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.
ResourceByStorageClass returns a quota resource name by storage class.
V1ResourceByStorageClass returns a quota resource name by storage class.