struct

Kubernetes::TopologySelectorLabelRequirement

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

A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.

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

key

The label key that the selector applies to.

Source
key=(key : String | Nil)

The label key that the selector applies to.

Source
values

An array of string values. One value must match the label to be selected. Each entry in Values is ORed.

Source
values=(values : Array(String) | Nil)

An array of string values. One value must match the label to be selected. Each entry in Values is ORed.

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source