class Pyrite::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.

Defined in:

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

Constructors

Instance Method Summary

Constructor methods inherited from class Pyrite::Kubernetes::Spec

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new

Constructor Detail

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

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.


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

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.


def self.new(*, match_expressions : Array? = nil, match_labels : Hash(String, String)? = nil) #

Instance Method Detail


def match_expressions=(match_expressions : Array(Apimachinery::Apis::Meta::V1::LabelSelectorRequirement)?) #

def match_labels : Hash(String, String)? #

def match_labels=(match_labels : Hash(String, String)?) #