Skip to content
Docs Try Aspire

LabelSelectorV1 Properties

Class Properties 2 members
Represents a label selector for Kubernetes resources. A label selector is used to filter resources based on their labels, enabling selection of a specific set of objects in a dynamic way.
Represents a collection of label selector requirements used for matching Kubernetes resources. Each requirement specifies a key, an operator, and a set of values to define filtering criteria. This property is used to form more complex selection logic based on multiple conditions.
public List<LabelSelectorRequirementV1> MatchExpressions { get; set; }
MatchLabels Section titled MatchLabels Dictionary<string, string>
A collection of key-value pairs used to specify matching labels for Kubernetes resources. Labels are utilized as selectors to filter or identify a subset of resources within a Kubernetes environment.
public Dictionary<string, string> MatchLabels { get; set; }