# KubernetesManifestResource

- Module: [Aspire.Hosting.Kubernetes](/reference/api/go/aspire.hosting.kubernetes.md)
- Version: `13.6.5-preview.1.26559.7`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/b33d222049f1ecc3bc7257ec07b622fe550b2580)

Represents an arbitrary Kubernetes manifest that is emitted with a Kubernetes service.

## Definition

```go
type KubernetesManifestResource interface{}
```

## Methods

- [WithAnnotation](/reference/api/go/aspire.hosting.kubernetes/kubernetesmanifestresource/withannotation.md) -- `method` -- Adds or updates a Kubernetes annotation on this manifest.
  ```go
  WithAnnotation(key string, value string) KubernetesManifestResource
  ```
- [WithField](/reference/api/go/aspire.hosting.kubernetes/kubernetesmanifestresource/withfield.md) -- `method` -- Adds or updates a manifest field using a dot-separated path.
  ```go
  WithField(path string, value any) KubernetesManifestResource
  ```
- [WithLabel](/reference/api/go/aspire.hosting.kubernetes/kubernetesmanifestresource/withlabel.md) -- `method` -- Adds or updates a Kubernetes label on this manifest.
  ```go
  WithLabel(key string, value string) KubernetesManifestResource
  ```
- [WithNamespace](/reference/api/go/aspire.hosting.kubernetes/kubernetesmanifestresource/withnamespace.md) -- `method` -- Sets the namespace for this manifest.
  ```go
  WithNamespace(namespace string) KubernetesManifestResource
  ```
