@@ -32,18 +32,18 @@ ExecCredential 由基于 exec 的插件使用,与 HTTP 传输组件沟通凭
32
32
<tr ><td ><code >apiVersion</code ><br />string</td ><td ><code >client.authentication.k8s.io/v1beta1</code ></td ></tr >
33
33
<tr ><td ><code >kind</code ><br />string</td ><td ><code >ExecCredential</code ></td ></tr >
34
34
35
-
36
- <tr >< td ><code >spec</code > <B ><!-- [Required]--> [必需]</B ><br />
35
+ < tr >
36
+ <td ><code >spec</code > <B ><!-- [Required]--> [必需]</B ><br />
37
37
<a href =" #client-authentication-k8s-io-v1beta1-ExecCredentialSpec " ><code >ExecCredentialSpec</code ></a >
38
38
</td >
39
39
<td >
40
40
<!-- Spec holds information passed to the plugin by the transport.-->
41
41
字段 spec 包含由 HTTP 传输组件传递给插件的信息。
42
42
</td >
43
43
</tr >
44
-
45
44
46
- <tr ><td ><code >status</code ><br />
45
+ <tr >
46
+ <td ><code >status</code ><br />
47
47
<a href =" #client-authentication-k8s-io-v1beta1-ExecCredentialStatus " ><code >ExecCredentialStatus</code ></a >
48
48
</td >
49
49
<td >
@@ -52,24 +52,17 @@ ExecCredential 由基于 exec 的插件使用,与 HTTP 传输组件沟通凭
52
52
字段 status 由插件填充,包含传输组件与 API 服务器连接时需要提供的凭据。
53
53
</td >
54
54
</tr >
55
-
56
-
55
+
57
56
</tbody >
58
57
</table >
59
-
60
-
61
58
62
59
## ` Cluster ` {#client-authentication-k8s-io-v1beta1-Cluster}
63
-
64
-
65
-
66
60
67
61
<!-- **Appears in:**-->
68
62
** 出现在:**
69
63
70
64
- [ ExecCredentialSpec] ( #client-authentication-k8s-io-v1beta1-ExecCredentialSpec )
71
65
72
-
73
66
<!--
74
67
Cluster contains information to allow an exec plugin to communicate
75
68
with the kubernetes cluster being authenticated to.
@@ -89,20 +82,19 @@ Cluster 中包含允许 exec 插件与 Kubernetes 集群进行通信身份认证
89
82
<table class =" table " >
90
83
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
91
84
<tbody >
92
-
93
85
94
-
95
- <tr >< td ><code >server</code > <B ><!-- [Required]--> [必需]</B ><br />
86
+ < tr >
87
+ <td ><code >server</code > <B ><!-- [Required]--> [必需]</B ><br />
96
88
<code >string</code >
97
89
</td >
98
90
<td >
99
91
<!-- Server is the address of the kubernetes cluster (http://hostname:port).-->
100
92
字段 server 是 Kubernetes 集群的地址(http://hostname:port)。
101
93
</td >
102
94
</tr >
103
-
104
-
105
- <tr >< td ><code >tls-server-name</code ><br />
95
+
96
+ < tr >
97
+ <td ><code >tls-server-name</code ><br />
106
98
<code >string</code >
107
99
</td >
108
100
<td >
@@ -115,9 +107,9 @@ used to contact the server is used.
115
107
如此字段为空,则使用链接服务器时使用的主机名。
116
108
</td >
117
109
</tr >
118
-
119
-
120
- <tr >< td ><code >insecure-skip-tls-verify</code ><br />
110
+
111
+ < tr >
112
+ <td ><code >insecure-skip-tls-verify</code ><br />
121
113
<code >bool</code >
122
114
</td >
123
115
<td >
@@ -129,9 +121,9 @@ This will make your HTTPS connections insecure.
129
121
这会使得你的 HTTPS 链接不再安全。
130
122
</td >
131
123
</tr >
132
-
133
-
134
- <tr >< td ><code >certificate-authority-data</code ><br />
124
+
125
+ < tr >
126
+ <td ><code >certificate-authority-data</code ><br />
135
127
<code >[ ] byte</code >
136
128
</td >
137
129
<td >
@@ -143,9 +135,9 @@ If empty, system roots should be used.
143
135
如果为空,则使用系统的根证书。
144
136
</td >
145
137
</tr >
146
-
147
-
148
- <tr >< td ><code >proxy-url</code ><br />
138
+
139
+ < tr >
140
+ <td ><code >proxy-url</code ><br />
149
141
<code >string</code >
150
142
</td >
151
143
<td >
@@ -154,7 +146,8 @@ If empty, system roots should be used.
154
146
</td >
155
147
</tr >
156
148
157
- <tr ><td ><code >disable-compression</code ><br />
149
+ <tr >
150
+ <td ><code >disable-compression</code ><br />
158
151
<code >bool</code >
159
152
</td >
160
153
<td >
@@ -169,7 +162,8 @@ If empty, system roots should be used.
169
162
</td >
170
163
</tr >
171
164
172
- <tr ><td ><code >config</code ><br />
165
+ <tr >
166
+ <td ><code >config</code ><br />
173
167
<a href =" http://godoc.org/k8s.io/apimachinery/pkg/runtime/#RawExtension " ><code >k8s.io/apimachinery/pkg/runtime.RawExtension</code ></a >
174
168
</td >
175
169
<td >
@@ -208,24 +202,17 @@ to be stored directly in the kubeconfig.
208
202
kubeconfig 中保存 Secret 数据。</p >
209
203
</td >
210
204
</tr >
211
-
212
205
213
206
</tbody >
214
207
</table >
215
-
216
-
217
208
218
209
## ` ExecCredentialSpec ` {#client-authentication-k8s-io-v1beta1-ExecCredentialSpec}
219
-
220
-
221
-
222
210
223
211
<!-- **Appears in:** -->
224
212
** 出现在:**
225
213
226
214
- [ ExecCredential] ( #client-authentication-k8s-io-v1beta1-ExecCredential )
227
215
228
-
229
216
<!--
230
217
ExecCredentialSpec holds request and runtime specific information provided by
231
218
the transport.
@@ -235,9 +222,7 @@ ExecCredentialSpec 保存传输组件所提供的特定于请求和运行时的
235
222
<table class =" table " >
236
223
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
237
224
<tbody >
238
-
239
225
240
-
241
226
<tr ><td ><code >cluster</code ><br />
242
227
<a href =" #client-authentication-k8s-io-v1beta1-Cluster " ><code >Cluster</code ></a >
243
228
</td >
@@ -253,81 +238,77 @@ ExecConfig.ProvideClusterInfo).
253
238
(即:ExecConfig.ProvideClusterInfo)被设置为 true 时才不能为空。
254
239
</td >
255
240
</tr >
256
-
257
-
241
+
258
242
</tbody >
259
243
</table >
260
-
261
-
262
244
263
245
## ` ExecCredentialStatus ` {#client-authentication-k8s-io-v1beta1-ExecCredentialStatus}
264
-
265
-
266
-
267
246
268
247
<!-- **Appears in:** -->
269
248
** 出现在:**
270
249
271
250
- [ ExecCredential] ( #client-authentication-k8s-io-v1beta1-ExecCredential )
272
251
273
-
274
- <!--
252
+ < p >
253
+ <!--
275
254
ExecCredentialStatus holds credentials for the transport to use.
255
+ -->
256
+ ExecCredentialStatus 中包含传输组件要使用的凭据。
257
+ </p >
276
258
259
+ <p >
260
+ <!--
277
261
Token and ClientKeyData are sensitive fields. This data should only be
278
262
transmitted in-memory between client and exec plugin process. Exec plugin
279
263
itself should at least be protected via file permissions.
280
264
-->
281
- <p >ExecCredentialStatus 中包含传输组件要使用的凭据。</p >
282
-
283
- <p >字段 token 和 clientKeyData 都是敏感字段。
265
+ 字段 token 和 clientKeyData 都是敏感字段。
284
266
此数据只能在客户端与 exec 插件进程之间使用内存来传递。
285
- exec 插件本身至少应通过文件访问许可来实施保护。</p >
267
+ exec 插件本身至少应通过文件访问许可来实施保护。
268
+ </p >
286
269
287
270
<table class =" table " >
288
271
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
289
-
290
272
291
-
292
- <tr >< td ><code >expirationTimestamp</code ><br />
293
- <a href =" http://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29 /#time-v1-meta " ><code >meta/v1.Time</code ></a >
273
+ < tr >
274
+ <td ><code >expirationTimestamp</code ><br />
275
+ <a href =" http://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30 /#time-v1-meta " ><code >meta/v1.Time</code ></a >
294
276
</td >
295
277
<td >
296
278
<!-- ExpirationTimestamp indicates a time when the provided credentials expire. -->
297
279
给出所提供的凭据到期的时间。
298
280
</td >
299
281
</tr >
300
282
301
-
302
- <tr >< td ><code >token</code > <B ><!-- [Required]--> [必需]</B ><br />
283
+ < tr >
284
+ <td ><code >token</code > <B ><!-- [Required]--> [必需]</B ><br />
303
285
<code >string</code >
304
286
</td >
305
287
<td >
306
288
<!-- Token is a bearer token used by the client for request authentication. -->
307
289
客户端用做请求身份认证的持有者令牌。
308
290
</td >
309
291
</tr >
310
-
311
-
312
- <tr >< td ><code >clientCertificateData</code > <B ><!-- [Required]--> [必需]</B ><br />
292
+
293
+ < tr >
294
+ <td ><code >clientCertificateData</code > <B ><!-- [Required]--> [必需]</B ><br />
313
295
<code >string</code >
314
296
</td >
315
297
<td >
316
298
<!-- PEM-encoded client TLS certificates (including intermediates, if any). -->
317
299
PEM 编码的客户端 TLS 证书(如果有临时证书,也会包含)。
318
300
</td >
319
301
</tr >
320
-
321
-
322
- <tr >< td ><code >clientKeyData</code > <B ><!-- [Required]--> [必需]</B ><br />
302
+
303
+ < tr >
304
+ <td ><code >clientKeyData</code > <B ><!-- [Required]--> [必需]</B ><br />
323
305
<code >string</code >
324
306
</td >
325
307
<td >
326
308
<!-- PEM-encoded private key for the above certificate. -->
327
309
与上述证书对应的、PEM 编码的私钥。
328
310
</td >
329
311
</tr >
330
-
331
-
312
+
332
313
</tbody >
333
314
</table >
0 commit comments