OwnerReferenceV1 Class

Definition

Represents a reference to the owner of a Kubernetes resource. This reference is often used to establish relationships between dependent resources and ensure cascading deletion when the owner resource is removed.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class OwnerReferenceV1 : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesObject
[<YamlDotNet.Serialization.YamlSerializable>]
type OwnerReferenceV1 = class
    inherit BaseKubernetesObject
Public NotInheritable Class OwnerReferenceV1
Inherits BaseKubernetesObject
Inheritance
OwnerReferenceV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Constructors

OwnerReferenceV1()

Properties

ApiVersion

Gets or sets the API version for the Kubernetes resource.

(Inherited from BaseKubernetesObject)
BlockOwnerDeletion

Specifies whether the deletion of the owner object should be blocked if this dependent object still exists. If set to true, the owner object cannot be deleted until this dependent object is removed. This property is typically used in Kubernetes garbage collection mechanisms.

Controller

A property that indicates whether the current object is a controller for the associated resource. If true, it signifies that this object actively manages the resource and ensures its state matches the desired state defined by the controller.

Kind

Gets or sets the kind of the Kubernetes resource.

(Inherited from BaseKubernetesObject)
Name

Gets or sets the name of the Kubernetes resource associated with the owner reference.

Uid

Gets or sets the unique identifier (UID) of the owner. This value is used to uniquely distinguish the owner resource within a Kubernetes cluster.

Applies to