# AddManifest

- Module: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/go/communitytoolkit.aspire.hosting.kind.md)
- Version: `13.5.1-beta.895`
- Kind: `method`
- Defined on: [`KindClusterResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindclusterresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/2c26a4c9649531d17fce3cbc4c5dea00d61d279c)

Adds a Kubernetes manifest to be applied to the Kind cluster via `kubectl apply`.

## Remarks

The manifest is applied after the parent Kind cluster reaches the
`Running` state. Downstream resources that call
`WaitFor` on the manifest resource only start once `kubectl apply` succeeds.
Requires `kubectl` on `PATH`.

## Definition

```go
func (KindClusterResource) AddManifest(
    name string,
    manifestPath string,
) K8sManifestResource
```

## Parameters

- `name` (`string`) -- The name of the manifest resource.
- `manifestPath` (`string`) -- Absolute path to a Kubernetes manifest file, a directory of manifest files, or a Kustomize overlay directory. Relative paths are not supported. URL fetch is not supported; reference a local file or directory.

## Returns

[`K8sManifestResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource.md) -- A reference to the `IResourceBuilder`.

Returns a handle; failures surface later via `Err()`.

## Applies to

- [`KindClusterResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindclusterresource.md)
