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