# KindHelmChartResource

- Module: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/typescript/communitytoolkit.aspire.hosting.kind.md)
- Version: `13.5.1-beta.736`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/3ebe72753ae604ec3c9e343865740e6f8512e1b6)

## Definition

```typescript
interface KindHelmChartResource
  extends IResource,
    IResourceWithParent,
    KindClusterResource]],
    IResourceWithWaitSupport {
  withChartVersion(version: string): KindHelmChartResource;
  withCrdWaitRetry(
      maxAttempts?: number,
      backoff?: timespan,
      crdWaitTimeout?: timespan): KindHelmChartResource;
  withHelmStringValue(
      key: string,
      value: string): KindHelmChartResource;
  withHelmValue(
      key: string,
      value: string): KindHelmChartResource;
  withHelmValuesFile(path: string): KindHelmChartResource;
}
```

## Methods

- [withChartVersion](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/kindhelmchartresource/withchartversion.md) -- `method` -- Sets the chart version (maps to `helm install --version`).
    ```typescript
  withChartVersion(version: string): KindHelmChartResource
  ```
- [withCrdWaitRetry](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/kindhelmchartresource/withcrdwaitretry.md) -- `method` -- Retries Helm installs that race newly-created CRDs which have not reached the `Established` condition yet.
    ```typescript
  withCrdWaitRetry(maxAttempts?: number, backoff?: timespan, crdWaitTimeout?: timespan): KindHelmChartResource
  ```
- [withHelmStringValue](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/kindhelmchartresource/withhelmstringvalue.md) -- `method` -- Sets a Helm value while preserving it as a string (maps to `helm install --set-string key=value`).
    ```typescript
  withHelmStringValue(key: string, value: string): KindHelmChartResource
  ```
- [withHelmValue](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/kindhelmchartresource/withhelmvalue.md) -- `method` -- Sets a Helm value (maps to `helm install --set key=value`).
    ```typescript
  withHelmValue(key: string, value: string): KindHelmChartResource
  ```
- [withHelmValuesFile](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/kindhelmchartresource/withhelmvaluesfile.md) -- `method` -- Adds a values file (maps to `helm install -f path`).
    ```typescript
  withHelmValuesFile(path: string): KindHelmChartResource
  ```
