# HelmReleaseResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.K3s](/reference/api/csharp/communitytoolkit.aspire.hosting.k3s.md)
- Version: `13.4.1-beta.706`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.K3s/HelmReleaseResource.cs)
- Inherits: `ContainerResource`
- Implements: `IResource`, `IResourceWithParent`, `IResourceWithParent<K3sClusterResource>`

Represents a Helm chart release installed into a k3s cluster.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class HelmReleaseResource
    : Aspire.Hosting.ApplicationModel.ContainerResource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.K3sClusterResource>
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.K3s/HelmReleaseResource`
- Public instance properties are exported as ATS capabilities.

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

## Constructors

- [HelmReleaseResource(string, string, string, K3sClusterResource)](/reference/api/csharp/communitytoolkit.aspire.hosting.k3s/helmreleaseresource/constructors.md#constructor-string-string-string-k3sclusterresource) -- Represents a Helm chart release installed into a k3s cluster.

## Properties

- [Namespace](/reference/api/csharp/communitytoolkit.aspire.hosting.k3s/helmreleaseresource/properties.md#namespace) : `string` `get` -- Gets the Kubernetes namespace the chart is installed into.
- [Parent](/reference/api/csharp/communitytoolkit.aspire.hosting.k3s/helmreleaseresource/properties.md#parent) : [K3sClusterResource](/reference/api/csharp/communitytoolkit.aspire.hosting.k3s/k3sclusterresource.md) `get` -- Gets the parent resource of type [K3sClusterResource](/reference/api/csharp/communitytoolkit.aspire.hosting.k3s/k3sclusterresource.md).
- [ReleaseName](/reference/api/csharp/communitytoolkit.aspire.hosting.k3s/helmreleaseresource/properties.md#releasename) : `string` `get` -- Gets the Helm release name passed to `helm upgrade --install`.
