Share via


PersistentVolumeClaimSpecV1.Selector Property

Definition

Gets or sets the label selector used to filter Kubernetes resources.

[YamlDotNet.Serialization.YamlMember(Alias="selector")]
public Aspire.Hosting.Kubernetes.Resources.LabelSelectorV1 Selector { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="selector")>]
member this.Selector : Aspire.Hosting.Kubernetes.Resources.LabelSelectorV1 with get, set
Public Property Selector As LabelSelectorV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The Selector property allows the specification of a set of filtering criteria using labels. It supports exact matches with key-value pairs (MatchLabels) as well as more complex filtering rules using label selector requirements (MatchExpressions). This property is commonly used to dynamically select resources like pods or volumes in Kubernetes deployments.

Applies to