Skip to content

Commit b77eaa2

Browse files
committed
[zh-cn]sync kubectl_set kubectl_explain
Signed-off-by: xin.li <xin.li@daocloud.io>
1 parent 4de12b3 commit b77eaa2

File tree

4 files changed

+67
-41
lines changed

4 files changed

+67
-41
lines changed

content/zh-cn/docs/reference/kubectl/generated/kubectl_explain/_index.md

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ kubectl explain deployment --output=plaintext-openapiv2
8282

8383
## {{% heading "options" %}}
8484

85-
<table style="width: 100%; table-layout: fixed;">
85+
<table style="width: 100%; table-layout: fixed;">
8686
<colgroup>
8787
<col span="1" style="width: 10px;" />
8888
<col span="1" />
@@ -93,56 +93,65 @@ kubectl explain deployment --output=plaintext-openapiv2
9393
<td colspan="2">--api-version string</td>
9494
</tr>
9595
<tr>
96-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
96+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
97+
<p>
9798
<!--
98-
Use given api-version (group/version) of the resource.
99+
Get different explanations for particular API version (API group/version).
99100
-->
100-
使用资源的给定的 API 版本(组/版本)。
101-
</p></td>
101+
获取特定 API 版本(API 组/版本)的描述。
102+
</p>
103+
</td>
102104
</tr>
103105

104106
<tr>
105107
<td colspan="2">-h, --help</td>
106108
</tr>
107109
<tr>
108-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
110+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
111+
<p>
109112
<!--
110113
help for explain
111114
-->
112115
explain 操作的帮助命令。
113-
</p></td>
116+
</p>
117+
</td>
114118
</tr>
115119

116120
<tr>
117121
<td colspan="2">-o, --output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"plaintext"</td>
122+
<td colspan="2">--output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"plaintext"</td>
118123
</tr>
119124
<tr>
120-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
125+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
126+
<p>
121127
<!--
122-
Format in which to render the schema. Valid values are: (plaintext, plaintext-openapiv2).
128+
Format in which to render the schema (plaintext, plaintext-openapiv2)
123129
-->
124-
渲染模式的格式。有效值为:(plaintext、plaintext-openapiv2)。
125-
</p></td>
130+
渲染模式的格式(plaintext、plaintext-openapiv2)。
131+
</p>
132+
</td>
126133
</tr>
127134

128135
<tr>
129136
<td colspan="2">--recursive</td>
130137
</tr>
131138
<tr>
132-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
139+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
140+
<p>
133141
<!--
134-
When true, print the name of all the fields recursively. Otherwise, print the available fields with their description.
142+
Print the fields of fields (Currently only 1 level deep)
135143
-->
136-
如果为真,递归打印所有字段的名称。否则,打印可用字段及其描述。
137-
</p></td>
144+
递归打印字段(目前仅支持 1 层)。
145+
</p>
146+
</td>
138147
</tr>
139148

140149
</tbody>
141150
</table>
142151

143152
## {{% heading "parentoptions" %}}
144153

145-
<table style="width: 100%; table-layout: fixed;">
154+
<table style="width: 100%; table-layout: fixed;">
146155
<colgroup>
147156
<col span="1" style="width: 10px;" />
148157
<col span="1" />
@@ -153,36 +162,42 @@ When true, print the name of all the fields recursively. Otherwise, print the av
153162
<td colspan="2">--as string</td>
154163
</tr>
155164
<tr>
156-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
165+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
166+
<p>
157167
<!--
158168
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
159169
-->
160170
操作所用的伪装用户名。用户可以是常规用户或命名空间中的服务账号。
161-
</p></td>
171+
</p>
172+
</td>
162173
</tr>
163174

164175
<tr>
165176
<td colspan="2">--as-group strings</td>
166177
</tr>
167178
<tr>
168-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
179+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
180+
<p>
169181
<!--
170182
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
171183
-->
172184
操作所用的伪装用户组,此标志可以被重复设置以指定多个组。
173-
</p></td>
185+
</p>
186+
</td>
174187
</tr>
175188

176189
<tr>
177190
<td colspan="2">--as-uid string</td>
178191
</tr>
179192
<tr>
180-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
193+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
194+
<p>
181195
<!--
182196
UID to impersonate for the operation.
183197
-->
184198
操作所用的伪装 UID。
185-
</p></td>
199+
</p>
200+
</td>
186201
</tr>
187202

188203
<tr>

content/zh-cn/docs/reference/kubectl/generated/kubectl_set/kubectl_set_image.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ kubectl set image -f path/to/file.yaml nginx=nginx:1.9.1 --local -o yaml
6464

6565
## {{% heading "options" %}}
6666

67-
<table style="width: 100%; table-layout: fixed;">
67+
<table style="width: 100%; table-layout: fixed;">
6868
<colgroup>
6969
<col span="1" style="width: 10px;" />
7070
<col span="1" />
@@ -198,13 +198,16 @@ Process the directory used in -f, --filename recursively. Useful when you want t
198198
<td colspan="2">-l, --selector string</td>
199199
</tr>
200200
<tr>
201-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
201+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
202+
<p>
202203
<!--
203-
Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.
204+
Selector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)). Matching objects must satisfy all of the specified label constraints.
204205
-->
205-
过滤所用的选择算符(标签查询),支持 '='、'==' 和 '!='。
206-
(例如 -l key1=value1,key2=value2)。匹配的对象必须满足所有指定的标签约束。
207-
</p></td>
206+
过滤所用的选择算符(标签查询),支持 '='、'=='、'!='、'in' 和 'notin'。
207+
(例如 -l key1=value1,key2=value2,key3 in (value3))。
208+
匹配的对象必须满足所有指定的标签约束。
209+
</p>
210+
</td>
208211
</tr>
209212

210213
<tr>

content/zh-cn/docs/reference/kubectl/generated/kubectl_set/kubectl_set_resources.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ kubectl set resources -f path/to/file.yaml --limits=cpu=200m,memory=512Mi --loca
6161
6262
## {{% heading "options" %}}
6363
64-
<table style="width: 100%; table-layout: fixed;">
64+
<table style="width: 100%; table-layout: fixed;">
6565
<colgroup>
6666
<col span="1" style="width: 10px;" />
6767
<col span="1" />
@@ -122,12 +122,14 @@ Must be &quot;none&quot;, &quot;server&quot;, or &quot;client&quot;. If client s
122122
<td colspan="2">--field-manager string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"kubectl-set"</td>
123123
</tr>
124124
<tr>
125-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
125+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
126+
<p>
126127
<!--
127128
Name of the manager used to track field ownership.
128129
-->
129130
用于跟踪字段属主关系的管理器的名称。
130-
</p></td>
131+
</p>
132+
</td>
131133
</tr>
132134
133135
<tr>
@@ -233,13 +235,16 @@ The resource requirement requests for this container. For example, 'cpu=100m,me
233235
<td colspan="2">-l, --selector string</td>
234236
</tr>
235237
<tr>
236-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
238+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
239+
<p>
237240
<!--
238-
Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.
241+
Selector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)). Matching objects must satisfy all of the specified label constraints.
239242
-->
240-
过滤所用的选择算符(标签查询),支持 '=''==''!='
241-
(例如 -l key1=value1,key2=value2)。匹配的对象必须满足所有指定的标签约束。
242-
</p></td>
243+
过滤所用的选择算符(标签查询),支持 '=''==''!=''in''notin'
244+
(例如 -l key1=value1,key2=value2,key3 in (value3))。
245+
匹配的对象必须满足所有指定的标签约束。
246+
</p>
247+
</td>
243248
</tr>
244249
245250
<tr>

content/zh-cn/docs/reference/kubectl/generated/kubectl_set/kubectl_set_subject.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,16 @@ Process the directory used in -f, --filename recursively. Useful when you want t
194194
<td colspan="2">-l, --selector string</td>
195195
</tr>
196196
<tr>
197-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
197+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
198+
<p>
198199
<!--
199-
Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.
200+
Selector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)). Matching objects must satisfy all of the specified label constraints.
200201
-->
201-
过滤所用的选择算符(标签查询),支持 '='、'==' 和 '!='。
202-
(例如 -l key1=value1,key2=value2)。匹配的对象必须满足所有指定的标签约束。
203-
</p></td>
202+
过滤所用的选择算符(标签查询),支持 '='、'=='、'!='、'in' 和 'notin'。
203+
(例如 -l key1=value1,key2=value2,key3 in (value3))。
204+
匹配的对象必须满足所有指定的标签约束。
205+
</p>
206+
</td>
204207
</tr>
205208

206209
<tr>

0 commit comments

Comments
 (0)