You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
或者如果没有指定容器名称,`spec.containers[ 2 ]`(此 Pod 中索引为 2 的容器)。
90
51
选择这种只是为了有一些定义好的语法来引用对象的部分。
91
52
53
+
<!--
54
+
- **kind** (string)
55
+
56
+
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
57
+
58
+
- **name** (string)
59
+
60
+
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
61
+
62
+
- **namespace** (string)
63
+
64
+
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
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
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
60
44
-->
61
-
62
-
<hr>
63
-
64
45
-**kind** (string),必需
65
46
66
-
Kind 是被引用的资源的类型
47
+
kind 是被引用的资源的类型。
67
48
68
49
-**name** (string),必需
69
50
70
-
Name 是被引用的资源的名称
51
+
name 是被引用的资源的名称。
71
52
72
53
-**apiGroup** (string)
73
54
74
-
APIGroup 是被引用资源的组。如果不指定 APIGroup,则指定的 Kind 必须在核心 API 组中。对于任何其它第三方类型,都需要 APIGroup。
75
-
76
-
77
-
78
-
79
-
55
+
apiGroup 是被引用资源的组。如果不指定 apiGroup,则指定的 kind 必须在核心 API 组中。
0 commit comments