# NamespaceSpecV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.4.0-preview.1.26281.18`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/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.
