class K8S::Apimachinery::Apis::Meta::V1::LabelSelector
- K8S::Apimachinery::Apis::Meta::V1::LabelSelector
- Reference
- Object
Overview
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.18/apimachinery/apis/meta/v1/label_selector.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, match_expressions : Array(Apimachinery::Apis::Meta::V1::LabelSelectorRequirement)? = nil, match_labels : Hash(String, String)? = nil)
Instance Method Summary
- #match_expressions : Array(Apimachinery::Apis::Meta::V1::LabelSelectorRequirement)?
- #match_expressions=(match_expressions : Array(Apimachinery::Apis::Meta::V1::LabelSelectorRequirement)?)
- #match_labels : Hash(String, String)?
- #match_labels=(match_labels : Hash(String, String)?)
Constructor Detail
def self.new(*, match_expressions : Array(Apimachinery::Apis::Meta::V1::LabelSelectorRequirement)? = nil, match_labels : Hash(String, String)? = nil)
#
Instance Method Detail
def match_expressions : Array(Apimachinery::Apis::Meta::V1::LabelSelectorRequirement)?
#
def match_expressions=(match_expressions : Array(Apimachinery::Apis::Meta::V1::LabelSelectorRequirement)?)
#