# HelmReleaseResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.K3s](/reference/api/csharp/communitytoolkit.aspire.hosting.k3s.md)
- Type: [HelmReleaseResource](/reference/api/csharp/communitytoolkit.aspire.hosting.k3s/helmreleaseresource.md)
- Kind: `Constructors`
- Members: `1`

Represents a Helm chart release installed into a k3s cluster.

<a id="constructor"></a>
<a id="constructor-string-string-string-k3sclusterresource"></a>

## HelmReleaseResource(string, string, string, K3sClusterResource)

- Name: `Constructor(string, string, string, K3sClusterResource)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.K3s/HelmReleaseResource.cs#L26-L49)

Represents a Helm chart release installed into a k3s cluster.

```csharp
public sealed class HelmReleaseResource
{
    public HelmReleaseResource(
        string name,
        string releaseName,
        string @namespace,
        K3sClusterResource cluster)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The Aspire resource name; also used as the Helm release name.
- `releaseName` (`string`)
  The Helm release name passed to `helm upgrade --install`.
- `namespace` (`string`)
  The Kubernetes namespace to install the chart into.
- `cluster` ([K3sClusterResource](/reference/api/csharp/communitytoolkit.aspire.hosting.k3s/k3sclusterresource.md))
  The parent k3s cluster resource.

## 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.
