Share via


PodAffinityTermV1.MismatchLabelKeys Property

Definition

Represents a list of label keys that must NOT be matched by the target resources. This property is used as part of the label-based selection mechanism to exclude resources that have specific labels from being selected.

[YamlDotNet.Serialization.YamlMember(Alias="mismatchLabelKeys")]
public System.Collections.Generic.List<string> MismatchLabelKeys { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="mismatchLabelKeys")>]
member this.MismatchLabelKeys : System.Collections.Generic.List<string>
Public ReadOnly Property MismatchLabelKeys As List(Of String)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

MismatchLabelKeys is commonly used in conjunction with MatchLabelKeys and selectors like LabelSelector or NamespaceSelector to define precise inclusion and exclusion rules for Kubernetes resource selection. If a resource contains any of the labels specified in MismatchLabelKeys, it will not match the selector criteria.

Applies to