NodeSelectorRequirement
节点选择算符需求是一个选择算符,其中包含值集、主键以及一个将键和值集关联起来的操作符。
import "k8s.io/api/core/v1"
节点选择算符需求是一个选择算符,其中包含值集、主键以及一个将键和值集关联起来的操作符。
-
key (string),必需
选择算符所适用的标签主键。
-
operator (string),必需
代表主键与值集之间的关系。合法的 operator 值包括
In
、NotIn
、Exists
、DoesNotExist
、Gt
和Lt
。
-
values ([]string)
原子性:将在合并期间被替换
一个由字符串值组成的数组。如果 operator 是
In
或NotIn
,则 values 数组不能为空。 如果 operator 为Exists
或DoesNotExist
,则 values 数组只能为空。 如果 operator 为Gt
或Lt
,则 values 数组只能包含一个元素,并且该元素会被解释为整数。 在执行策略性合并补丁操作时,此数组会被整体替换。
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
最后修改 October 11, 2024 at 2:39 PM PST: sync client-authentication.v1beta1 node-selector-requirement ingress-v1 (0835a19ea3)