class K8S::Apimachinery::Apis::Meta::V1::LabelSelector

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

Defined in:

versions/v1.13/apimachinery/apis/meta/v1/label_selector.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, match_expressions : Array(Apimachinery::Apis::Meta::V1::LabelSelectorRequirement)? = nil, match_labels : Hash(String, String)? = nil) #

[View source]

Instance Method Detail


[View source]
def match_expressions=(match_expressions : Array(Apimachinery::Apis::Meta::V1::LabelSelectorRequirement)?) #

[View source]
def match_labels : Hash(String, String)? #

[View source]
def match_labels=(match_labels : Hash(String, String)?) #

[View source]