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