# NamespaceSpecV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/NamespaceSpecV1.cs)

Represents the specification for a Kubernetes Namespace resource in the v1 API version.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class NamespaceSpecV1
{
    // ...
}
```

## Remarks

This class provides configuration details for a Kubernetes Namespace, specifically the associated finalizers. Finalizers are used to ensure proper cleanup or processing of resources before deletion. The NamespaceSpecV1 object is referenced within a Kubernetes Namespace instance.

## Constructors

- [NamespaceSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/namespacespecv1/constructors.md#constructor)

## Properties

- [Finalizers](/reference/api/csharp/aspire.hosting.kubernetes/namespacespecv1/properties.md#finalizers) : `List<string>` `get` -- Gets the list of finalizers associated with the namespace. Finalizers are used to define actions or hooks that must be completed before a namespace is deleted. This ensures specific cleanup tasks are completed properly before the resource is removed.
