@@ -4,12 +4,12 @@ api_metadata:
4
4
import : " k8s.io/api/core/v1"
5
5
kind : " NodeSelectorRequirement"
6
6
content_type : " api_reference"
7
- description : " 节点选择器是要求包含键、值和关联键和值的运算符的选择器 "
7
+ description : 节点选择算符需求是一个选择算符,其中包含值集、主键以及一个将键和值集关联起来的操作符。
8
8
title : " NodeSelectorRequirement"
9
9
weight : 5
10
- auto_generated : true
11
10
---
12
- <!--
11
+
12
+ <!-- -
13
13
api_metadata:
14
14
apiVersion: ""
15
15
import: "k8s.io/api/core/v1"
@@ -21,57 +21,41 @@ weight: 5
21
21
auto_generated: true
22
22
-->
23
23
24
- <!--
25
- The file is auto-generated from the Go source code of the component using a generic
26
- [generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
27
- to generate the reference documentation, please read
28
- [Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
29
- To update the reference content, please follow the
30
- [Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
31
- guide. You can file document formatting bugs against the
32
- [reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
33
- -->
34
-
35
-
36
-
37
24
` import "k8s.io/api/core/v1" `
38
25
39
-
40
26
<!--
41
27
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
42
28
-->
43
- 节点选择器是要求包含键、值和关联键和值的运算符的选择器 。
29
+ 节点选择算符需求是一个选择算符,其中包含值集、主键以及一个将键和值集关联起来的操作符 。
44
30
45
31
<hr >
46
32
47
33
<!--
48
34
- **key** (string), required
49
35
50
36
The label key that the selector applies to.
51
- -->
52
- - ** key** (string), 必选
53
-
54
- 选择器适用的标签键。
55
37
56
- <!--
57
38
- **operator** (string), required
58
39
59
40
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
60
41
-->
61
- - ** operator** (string), 必选
42
+ - ** key** (string),必需
43
+
44
+ 选择算符所适用的标签主键。
62
45
63
- 表示键与一组值的关系的运算符。有效的运算符包括:In、NotIn、Exists、DoesNotExist、Gt 和 Lt。
46
+ - ** operator ** (string),必需
64
47
48
+ 代表主键与值集之间的关系。合法的 operator 值包括 ` In ` 、` NotIn ` 、` Exists ` 、` DoesNotExist ` 、` Gt ` 和 ` Lt ` 。
49
+
65
50
<!--
66
51
- **values** ([]string)
67
52
68
53
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
69
54
-->
70
55
- ** values** ([ ] string)
71
56
72
- 字符串数组。如果运算符为 In 或 NotIn,则数组必须为非空。
73
- 如果运算符为 Exists 或 DoesNotExist,则数组必须为空。
74
- 如果运算符为 Gt 或 Lt,则数组必须有一个元素,该元素将被译为整数。
75
- 该数组在合并计划补丁时将被替换。
76
-
57
+ 一个由字符串值组成的数组。如果 operator 是 ` In ` 或 ` NotIn ` ,则 values 数组不能为空。
58
+ 如果 operator 为 ` Exists ` 或 ` DoesNotExist ` ,则 values 数组只能为空。
59
+ 如果 operator 为 ` Gt ` 或 ` Lt ` ,则 values 数组只能包含一个元素,并且该元素会被解释为整数。
60
+ 在执行策略性合并补丁操作时,此数组会被整体替换。
77
61
0 commit comments