Skip to content
Docs Try Aspire

ObjectMetaV1

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
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
{
// ...
}
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.
View all constructors
Annotationsget
Dictionary<string, string>
Represents a collection of annotations associated with a Kubernetes object metadata.
CreationTimestampget; set
DateTime?
Represents the timestamp indicating when the resource was created.
DeletionGracePeriodSecondsget; set
long?
Specifies the duration, in seconds, that a Kubernetes resource will remain in a pending deletion state after a deletion request is initiated.
DeletionTimestampget; set
DateTime?
Gets or sets the timestamp marking when the object is scheduled for deletion.
Finalizersget
List<string>
A list of strings that describes the finalization steps for a Kubernetes resource.
GenerateNameget; set
string
Specifies a prefix to be used by the system for generating a unique name if the `Name` property is not provided.
Generationget; set
long?
Represents the generation of the resource in the Kubernetes object metadata.
Labelsget; set
Dictionary<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; set
string
Gets or sets the name of the Kubernetes resource.
Namespaceget; set
string
Gets or sets the namespace of the Kubernetes resource.
OwnerReferencesget
Represents a list of owner references for a Kubernetes object.
ResourceVersionget; set
string
Represents the specific version of a Kubernetes resource as stored in the server's database.
SelfLinkget; set
string
Gets or sets the self-referential link for the resource.
Uidget; set
string
Gets or sets the unique identifier (UID) of the Kubernetes resource.
View all properties