你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

KubeLabelSelector Class

Kubernetes Label Selector for matching labels in Kubernetes Selector Groups.

Constructor

KubeLabelSelector(*args: Any, **kwargs: Any)

Variables

Name Description
match_labels

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

match_expressions

matchExpressions is a list of label selector requirements. The requirements are ANDed.

Attributes

match_expressions

matchExpressions is a list of label selector requirements. The requirements are ANDed.

match_expressions: list['_models.LabelSelectorExpression'] | None

match_labels

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

match_labels: dict[str, str] | None