LabelSelectorRequirementV1
Class sealed net10.0
Represents a label selector requirement for Kubernetes resources. This is used to define conditions for filtering resources based on labels. Each requirement consists of a key, an operator, and a set of values that dictate how the label selector behaves.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class LabelSelectorRequirementV1{ // ...}Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesKeyget; setstring Gets or sets the key that the selector applies to. This is used to specify the label key that should be matched against in the selector.
Operatorget; setstring Gets or sets the operator to be applied in the context of label selection. Specifies the relationship between the key and values attributes required to satisfy the condition. Commonly used operators could include 'In', 'NotIn', 'Exists', or 'DoesNotExist'.
ValuesgetList<string> Gets the collection of values that are associated with the label key in a selector requirement. This property represents a list of string values that must match or be compared against in accordance with the specified operator. The values are used to define matching criteria for labels in Kubernetes resources.