BaseKubernetesResource.Metadata Property

Definition

Gets or sets the metadata for the Kubernetes resource.

[YamlDotNet.Serialization.YamlMember(Alias="metadata", Order=-1)]
public Aspire.Hosting.Kubernetes.Resources.ObjectMetaV1 Metadata { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="metadata", Order=-1)>]
member this.Metadata : Aspire.Hosting.Kubernetes.Resources.ObjectMetaV1 with get, set
Public Property Metadata As ObjectMetaV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The metadata contains standard information such as the resource’s name, namespace, labels, annotations, and other Kubernetes-specific properties. It is encapsulated in an ObjectMetaV1 object, which provides properties for managing the resource’s unique identifier (UID), name, namespace, generation, and other relevant details like annotations, labels, and owner references.

Applies to