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 项目中的其他地方进行。