ResourceQuotaSpec

data class ResourceQuotaSpec(val hard: Map<String, String>? = null, val scopeSelector: ScopeSelector? = null, val scopes: List<String>? = null)

ResourceQuotaSpec defines the desired hard limits to enforce for Quota.

Constructors

Link copied to clipboard
constructor(hard: Map<String, String>? = null, scopeSelector: ScopeSelector? = null, scopes: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val hard: Map<String, String>? = null

hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/

Link copied to clipboard
val scopes: List<String>? = null

A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.

Link copied to clipboard

scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.