# K8sManifestResource

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

A Kubernetes manifest applied to a Kind cluster via `kubectl apply`.

## Definition

```go
type K8sManifestResource interface {
    Resource
    ResourceWithParent
    ResourceWithWaitSupport
}
```

## Embeds

- `Resource`
- `ResourceWithParent`
- `ResourceWithWaitSupport`

## Properties

- `ApplyTimeout`: `float64` `get/set` -- Gets or sets the maximum time to wait for `kubectl apply` to complete.
- `ClusterReadyTimeout`: `float64` `get/set` -- Gets or sets the maximum time to wait for the Kubernetes API to become reachable before running `kubectl apply`.
- `CrdWaitBehavior`: [`CrdWaitBehavior`](/reference/api/go/communitytoolkit.aspire.hosting.kind/crdwaitbehavior.md) `get/set` -- Gets or sets how CRD wait failures are handled.
- `CrdWaitTimeout`: `float64` `get/set` -- Gets or sets the maximum time to wait for applied CRDs to reach the `Established` condition.
- `FieldManager`: `*string` `get/set` -- Gets the field manager name used with server-side apply (maps to `kubectl apply --field-manager`). When `null`, kubectl uses its default (`kubectl`).
- `ForceConflicts`: `bool` `get/set` -- Gets or sets whether to force conflicts on server-side apply (maps to `kubectl apply --server-side --force-conflicts`). Only meaningful when `ServerSide` is `true`.
- `InlineContent`: `*string` `get/set` -- Gets or sets inline manifest content applied with `kubectl apply -f -`.
- `IsKustomize`: `bool` `get/set` -- Gets or sets whether this resource represents a Kustomize overlay directory.
- `ManifestPath`: `string` `get` -- Gets the manifest path passed to `kubectl apply`. Accepts an absolute file path, an absolute directory path, or `<inline>` for standard input.
- `Namespace`: `*string` `get/set` -- Gets or sets the Kubernetes namespace for the deployment. When `null`, the Helm default namespace is used.
- `Recursive`: `bool` `get/set` -- Gets or sets whether to recursively apply manifests in subdirectories (maps to `kubectl apply --recursive`). Only meaningful when `ManifestPath` is a directory.
- `ServerSide`: `bool` `get/set` -- Gets or sets whether to apply the manifest server-side (maps to `kubectl apply --server-side`). Server-side apply is required for large CRDs that exceed the client-side annotation size limit.

## Methods

- [WithApplyTimeout](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource/withapplytimeout.md) -- `method` -- Sets the maximum time to wait for `kubectl apply` to complete.
  ```go
  WithApplyTimeout(timeout float64) K8sManifestResource
  ```
- [WithClusterReadyTimeout](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource/withclusterreadytimeout.md) -- `method` -- Sets the maximum time to wait for the Kubernetes API to become reachable before running `kubectl apply`.
  ```go
  WithClusterReadyTimeout(timeout float64) K8sManifestResource
  ```
- [WithCrdWaitBehavior](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource/withcrdwaitbehavior.md) -- `method` -- Sets whether CRD wait failures fail the manifest resource or are logged as best-effort warnings.
  ```go
  WithCrdWaitBehavior(behavior CrdWaitBehavior) K8sManifestResource
  ```
- [WithCrdWaitTimeout](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource/withcrdwaittimeout.md) -- `method` -- Sets the maximum time to wait for applied CRDs to reach the `Established` condition.
  ```go
  WithCrdWaitTimeout(timeout float64) K8sManifestResource
  ```
- [WithFieldManager](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource/withfieldmanager.md) -- `method` -- Sets the field manager name passed to `kubectl apply --field-manager`.
  ```go
  WithFieldManager(fieldManager string) K8sManifestResource
  ```
- [WithRecursive](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource/withrecursive.md) -- `method` -- Recursively applies manifests from subdirectories (maps to `kubectl apply --recursive`). Only meaningful when the manifest path is a directory.
  ```go
  WithRecursive() K8sManifestResource
  ```
- [WithServerSideApply](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource/withserversideapply.md) -- `method` -- Applies the manifest server-side (maps to `kubectl apply --server-side`). Required for large CRDs that exceed the client-side annotation size limit.
  ```go
  WithServerSideApply(options ...*WithServerSideApplyOptions) K8sManifestResource
  ```
