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.dev.org.tw/docs/concepts/overview/working-with-objects/names/#names
namespace (字串)
參照對象的命名空間。更多資訊:https://kubernetes.dev.org.tw/docs/concepts/overview/working-with-objects/namespaces/
resourceVersion (字串)
此參照所指向的特定 resourceVersion(如果有的話)。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
uid (字串)
參照對象的 UID。更多資訊:https://kubernetes.dev.org.tw/docs/concepts/overview/working-with-objects/names/#uids
此頁面為自動產生。
如果您計劃回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。修正可能需要在 Kubernetes 專案的其他地方進行。