struct

Kubernetes::NodeSelectorTerm

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.

Constructors

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)

Instance methods

match_expressions

A list of node selector requirements by node's labels.

Source
match_expressions=(match_expressions : Array(NodeSelectorRequirement) | Nil)

A list of node selector requirements by node's labels.

Source
match_fields

A list of node selector requirements by node's fields.

Source
match_fields=(match_fields : Array(NodeSelectorRequirement) | Nil)

A list of node selector requirements by node's fields.

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source