Skip to content

Commit 1f33e93

Browse files
committed
[zh-cn] Translate node-selector-requirement reference
1 parent 85a1bd7 commit 1f33e93

File tree

1 file changed

+14
-30
lines changed

1 file changed

+14
-30
lines changed

content/zh-cn/docs/reference/kubernetes-api/common-definitions/node-selector-requirement.md

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ api_metadata:
44
import: "k8s.io/api/core/v1"
55
kind: "NodeSelectorRequirement"
66
content_type: "api_reference"
7-
description: "节点选择器是要求包含键、值和关联键和值的运算符的选择器"
7+
description: 节点选择算符需求是一个选择算符,其中包含值集、主键以及一个将键和值集关联起来的操作符。
88
title: "NodeSelectorRequirement"
99
weight: 5
10-
auto_generated: true
1110
---
12-
<!--
11+
12+
<!---
1313
api_metadata:
1414
apiVersion: ""
1515
import: "k8s.io/api/core/v1"
@@ -21,57 +21,41 @@ weight: 5
2121
auto_generated: true
2222
-->
2323

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-
3724
`import "k8s.io/api/core/v1"`
3825

39-
4026
<!--
4127
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
4228
-->
43-
节点选择器是要求包含键、值和关联键和值的运算符的选择器
29+
节点选择算符需求是一个选择算符,其中包含值集、主键以及一个将键和值集关联起来的操作符
4430

4531
<hr>
4632

4733
<!--
4834
- **key** (string), required
4935
5036
The label key that the selector applies to.
51-
-->
52-
- **key** (string), 必选
53-
54-
选择器适用的标签键。
5537
56-
<!--
5738
- **operator** (string), required
5839
5940
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
6041
-->
61-
- **operator** (string), 必选
42+
- **key** (string),必需
43+
44+
选择算符所适用的标签主键。
6245

63-
表示键与一组值的关系的运算符。有效的运算符包括:In、NotIn、Exists、DoesNotExist、Gt 和 Lt。
46+
- **operator** (string),必需
6447

48+
代表主键与值集之间的关系。合法的 operator 值包括 `In``NotIn``Exists``DoesNotExist``Gt``Lt`
49+
6550
<!--
6651
- **values** ([]string)
6752
6853
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.
6954
-->
7055
- **values** ([]string)
7156

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+
在执行策略性合并补丁操作时,此数组会被整体替换。
7761

0 commit comments

Comments
 (0)