ObjectMetaV1
Class sealed net10.0
Represents metadata for Kubernetes resources, encapsulating standard properties such as the resource's name, namespace, labels, annotations, and owner references.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ObjectMetaV1{ // ...} 16 members
Remarks
Section titled Remarks This class is used to define and handle key metadata information associated with Kubernetes objects, such as: - Unique identifier (UID) of the resource. - Name and namespace of the resource. - Labels and annotations for organizing and categorizing resources. - Managed fields for tracking changes to the resource. - Owner references to define dependencies between resources. - Creation and deletion timestamps, along with optional deletion grace period. It is a core component for properly managing Kubernetes resources and ensuring compliance with Kubernetes object standards.
Constructors1
Section titled ConstructorsProperties15
Section titled PropertiesAnnotationsgetDictionary<string, string> Represents a collection of annotations associated with a Kubernetes object metadata.
CreationTimestampget; setDateTime? Represents the timestamp indicating when the resource was created.
DeletionGracePeriodSecondsget; setlong? Specifies the duration, in seconds, that a Kubernetes resource will remain in a pending deletion state after a deletion request is initiated.
DeletionTimestampget; setDateTime? Gets or sets the timestamp marking when the object is scheduled for deletion.
FinalizersgetList<string> A list of strings that describes the finalization steps for a Kubernetes resource.
GenerateNameget; setstring Specifies a prefix to be used by the system for generating a unique name if the `Name` property is not provided.
Generationget; setlong? Represents the generation of the resource in the Kubernetes object metadata.
Labelsget; setDictionary<string, string> A collection of key-value pairs used to organize and categorize Kubernetes resources.
ManagedFieldsget A collection of ManagedFieldsEntryV1 instances that provide metadata about field-level management in a Kubernetes resource.
Nameget; setstring Gets or sets the name of the Kubernetes resource.
Namespaceget; setstring Gets or sets the namespace of the Kubernetes resource.
OwnerReferencesget Represents a list of owner references for a Kubernetes object.
ResourceVersionget; setstring Represents the specific version of a Kubernetes resource as stored in the server's database.
SelfLinkget; setstring Gets or sets the self-referential link for the resource.
Uidget; setstring Gets or sets the unique identifier (UID) of the Kubernetes resource.