# HelmReleaseResource

- Module: [CommunityToolkit.Aspire.Hosting.K3s](/reference/api/go/communitytoolkit.aspire.hosting.k3s.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Represents a Helm chart release installed into a k3s cluster.

## Remarks

The release runs as an `alpine/helm` container. The container polls until the cluster
kubeconfig is available, executes `helm upgrade --install --wait`, then exits with
code 0. Use `WaitForCompletion(helmRelease)` on resources that depend on the chart
being fully installed.

## Definition

```go
type HelmReleaseResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithParent
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithParent`
- `ResourceWithWaitSupport`

## Properties

- `Namespace`: `string` `get` -- Gets the Kubernetes namespace the chart is installed into.
- `Parent`: [`K3sClusterResource`](/reference/api/go/communitytoolkit.aspire.hosting.k3s/k3sclusterresource.md) `get` -- Gets the Parent property
- `ReleaseName`: `string` `get` -- Gets the Helm release name passed to `helm upgrade --install`.

## Methods

- [WithHelmValue](/reference/api/go/communitytoolkit.aspire.hosting.k3s/helmreleaseresource/withhelmvalue.md) -- `method` -- Adds a Helm `--set key=value` override to the release.
  ```go
  WithHelmValue(key string, value string) HelmReleaseResource
  ```
- [WithHelmValuesFile](/reference/api/go/communitytoolkit.aspire.hosting.k3s/helmreleaseresource/withhelmvaluesfile.md) -- `method` -- Supplies a YAML values file to the Helm release (`--values`).
  ```go
  WithHelmValuesFile(path string) HelmReleaseResource
  ```
