Skip to content
Docs Try Aspire

LabelSelectorV1 Constructors

Class Constructors 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 label selector used to determine a set of resources in Kubernetes that match the defined criteria.
public sealed class LabelSelectorV1
{
public LabelSelectorV1()
{
// ...
}
}
LabelSelectorV1 is commonly used in Kubernetes resource specifications where filtering objects based on labels is required, such as in ReplicaSets, Deployments, or custom metrics.
Constructor(Dictionary<string, string>) Section titled Constructor(Dictionary<string, string>)
Represents a label selector used to determine a set of resources in Kubernetes that match the defined criteria.
public sealed class LabelSelectorV1
{
public LabelSelectorV1(
Dictionary<string, string> matchLabels)
{
// ...
}
}
matchLabels Dictionary<string, string>
LabelSelectorV1 is commonly used in Kubernetes resource specifications where filtering objects based on labels is required, such as in ReplicaSets, Deployments, or custom metrics.