kubernetes v1.37

ObjectMeta.ownerReferences

List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.

6 fields
ObjectMeta.ownerReferences fields and descriptions
Field / TypeDescription
apiVersion
string required

API version of the referent.

blockOwnerDeletion
boolean

If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.

controller
boolean

If true, this reference points to the managing controller.

kind
string required

Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

name
string required

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names

uid
string required

UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids