# KubernetesHelmChartResource

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

Represents an external Helm chart to be installed into a Kubernetes environment. This resource models a Helm chart from a repository (OCI or HTTP) that will be installed as a pipeline step after the main application Helm chart is deployed.

## Definition

```go
type KubernetesHelmChartResource interface {
    Resource
    ResourceWithParent
}
```

## Embeds

- `Resource`
- `ResourceWithParent`

## Methods

- [WithHelmChartDestroy](/reference/api/go/aspire.hosting.kubernetes/kuberneteshelmchartresource/withhelmchartdestroy.md) -- `method` -- Opts the Helm chart in to destroy-time uninstall. When set, `aspire destroy` will run `helm uninstall` for this release as part of the destroy pipeline.
  ```go
  WithHelmChartDestroy() KubernetesHelmChartResource
  ```
- [WithHelmChartForceConflicts](/reference/api/go/aspire.hosting.kubernetes/kuberneteshelmchartresource/withhelmchartforceconflicts.md) -- `method` -- Opts the Helm chart in to `helm upgrade --install --force-conflicts`. When set, Helm's server-side apply forcibly takes over any fields owned by another field manager instead of failing with a conflict.
  ```go
  WithHelmChartForceConflicts() KubernetesHelmChartResource
  ```
- [WithHelmChartNamespace](/reference/api/go/aspire.hosting.kubernetes/kuberneteshelmchartresource/withhelmchartnamespace.md) -- `method` -- Sets the Kubernetes namespace for the Helm chart installation. If not set, the namespace defaults to the chart resource name.
  ```go
  WithHelmChartNamespace(namespace string) KubernetesHelmChartResource
  ```
- [WithHelmChartReleaseName](/reference/api/go/aspire.hosting.kubernetes/kuberneteshelmchartresource/withhelmchartreleasename.md) -- `method` -- Sets the Helm release name for the chart installation. If not set, the release name defaults to the resource name.
  ```go
  WithHelmChartReleaseName(releaseName string) KubernetesHelmChartResource
  ```
- [WithHelmValue](/reference/api/go/aspire.hosting.kubernetes/kuberneteshelmchartresource/withhelmvalue.md) -- `method` -- Sets a Helm value for the chart installation. Values are passed to `helm upgrade --install` via `--set` flags.
  ```go
  WithHelmValue(key string, value string) KubernetesHelmChartResource
  ```
