struct
Kubernetes::ResourceQuotaSpec
- Kubernetes::ResourceQuotaSpec
- Struct
- Value
- Object
Overview
ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_core_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#hard : Hash(String, Quantity) | Nil
hard is the set of desired hard limits for each named resource.
-
#hard=(hard : Hash(String, Quantity) | Nil)
hard is the set of desired hard limits for each named resource.
-
#scope_selector : ScopeSelector | Nil
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.
-
#scope_selector=(scope_selector : ScopeSelector | Nil)
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.
-
#scopes : Array(String) | Nil
A collection of filters that must match each object tracked by a quota.
-
#scopes=(scopes : Array(String) | Nil)
A collection of filters that must match each object tracked by a quota.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
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.
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.
A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.
A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.