struct Kubernetes::ResourceQuotaSpec

Overview

ResourceQuotaSpec defines the desired hard limits to enforce for Quota.

Included Modules

Defined in:

generated/models/io_k8s_api_core_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def hard : Hash(String, Quantity) | Nil #

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


def hard=(hard : Hash(String, Quantity) | Nil) #

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


def 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. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.


def 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. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.


def scopes : Array(String) | Nil #

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


def scopes=(scopes : Array(String) | Nil) #

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