Skip to content

Commit 71b9d08

Browse files
authored
Merge pull request #32447 from xuezhixin/main
Translate ObjectReference #32433
2 parents d1ea334 + 9497059 commit 71b9d08

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
api_metadata:
3+
apiVersion: ""
4+
import: "k8s.io/api/core/v1"
5+
kind: "ObjectReference"
6+
content_type: "api_reference"
7+
description: "ObjectReference 包含足够的信息,可以让你检查或修改引用的对象。"
8+
title: "ObjectReference"
9+
weight: 8
10+
auto_generated: true
11+
---
12+
<!--
13+
api_metadata:
14+
apiVersion: ""
15+
import: "k8s.io/api/core/v1"
16+
kind: "ObjectReference"
17+
content_type: "api_reference"
18+
description: "ObjectReference contains enough information to let you inspect or modify the referred object."
19+
title: "ObjectReference"
20+
weight: 8
21+
auto_generated: true
22+
-->
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+
`import "k8s.io/api/core/v1"`
38+
39+
<!--
40+
ObjectReference contains enough information to let you inspect or modify the referred object.
41+
42+
<hr>
43+
-->
44+
45+
ObjectReference包含足够的信息,允许你检查或修改引用的对象。
46+
47+
<hr>
48+
49+
50+
<!--
51+
- **apiVersion** (string)
52+
53+
API version of the referent.
54+
55+
- **fieldPath** (string)
56+
57+
If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.
58+
59+
- **kind** (string)
60+
61+
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
62+
63+
- **name** (string)
64+
65+
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
66+
67+
- **namespace** (string)
68+
69+
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
70+
71+
- **resourceVersion** (string)
72+
73+
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
74+
75+
- **uid** (string)
76+
77+
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
78+
-->
79+
80+
- **apiVersion** (string)
81+
82+
被引用者的 API 版本。
83+
84+
- **fieldPath** (string)
85+
86+
如果引用的是对象的某个对象是整个对象,则该字符串而不是应包含的 JSON/Go 字段有效访问语句,
87+
例如`desiredState.manifest.containers[ 2 ]`。例如,如果对象引用针对的是 Pod 中的一个容器,
88+
此字段取值类似于:`spec.containers{name}``name`指触发的容器的名称),
89+
或者如果没有指定容器名称,`spec.containers[ 2 ]`(此Pod中索引为2的容器)。
90+
选择这种只是为了有一些定义好的语法来引用对象的部分。
91+
92+
- **kind** (string)
93+
94+
被引用者的类别(kind)。 更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md #types-kinds
95+
96+
- **name** (string)
97+
98+
被引用对象的名称。更多信息:https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
99+
100+
- **namespace** (string)
101+
102+
被引用对象的名字空间。更多信息:https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
103+
104+
- **resourceVersion** (string)
105+
106+
被引用对象的特定资源版本(如果有)。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
107+
108+
- **uid** (string)
109+
110+
被引用对象的UID。更多信息:https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
111+

0 commit comments

Comments
 (0)