ObjectReference
import "k8s.io/api/core/v1"
ObjectReference 包含足够的信息,可让您检查或修改所引用的对象。
apiVersion (字符串)
引用的 API 版本。
fieldPath (字符串)
如果引用的是对象的一部分而不是整个对象,则此字符串应包含有效的 JSON/Go 字段访问语句,例如 desiredState.manifest.containers[2]。例如,如果对象引用指向 Pod 中的容器,则其值将类似于:"spec.containers{name}"(其中 "name" 指的是触发事件的容器的名称),或者如果未指定容器名称,则为 "spec.containers[2]"(此 Pod 中索引为 2 的容器)。选择此语法只是为了拥有某种定义明确的方式来引用对象的一部分。
kind (字符串)
引用的类型。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
name (字符串)
引用的名称。更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names
namespace (字符串)
引用的命名空间。更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/namespaces/
resourceVersion (字符串)
此引用的特定资源版本(如果有)。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
uid (字符串)
引用的 UID。更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#uids
此页面是自动生成的。
如果您打算报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。