# HelmChartOptions

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/HelmChartOptions.cs)

Provides options for configuring Helm chart deployment settings on a [KubernetesEnvironmentResource](/reference/api/csharp/aspire.hosting.kubernetes/kubernetesenvironmentresource.md).

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes;

public sealed class HelmChartOptions
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Kubernetes/HelmChartOptions`

## Remarks

This class is used as the configuration callback parameter for [KubernetesEnvironmentExtensions.WithHelm(IResourceBuilder<KubernetesEnvironmentResource>, Action<HelmChartOptions>)](/reference/api/csharp/aspire.hosting.kubernetes/kubernetesenvironmentextensions/methods.md#withhelm-iresourcebuilder-kubernetesenvironmentresource-action-helmchartoptions). Each method adds a corresponding annotation to the environment resource.

## Methods

- [WithChartVersion(string)](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions/methods.md#withchartversion-string) : [HelmChartOptions](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions.md) `ats ignored` -- Sets the Helm chart version for deployment.
- [WithChartVersion(IResourceBuilder<ParameterResource>)](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions/methods.md#withchartversion-iresourcebuilder-parameterresource) : [HelmChartOptions](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions.md) `ats ignored` -- Sets the Helm chart version for deployment using a parameter that will be prompted at deploy time.
- [WithNamespace(string)](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions/methods.md#withnamespace-string) : [HelmChartOptions](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions.md) `ats ignored` -- Sets the target Kubernetes namespace for deployment.
- [WithNamespace(IResourceBuilder<ParameterResource>)](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions/methods.md#withnamespace-iresourcebuilder-parameterresource) : [HelmChartOptions](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions.md) `ats ignored` -- Sets the target Kubernetes namespace for deployment using a parameter that will be prompted at deploy time.
- [WithReleaseName(string)](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions/methods.md#withreleasename-string) : [HelmChartOptions](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions.md) `ats ignored` -- Sets the Helm release name for deployment.
- [WithReleaseName(IResourceBuilder<ParameterResource>)](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions/methods.md#withreleasename-iresourcebuilder-parameterresource) : [HelmChartOptions](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions.md) `ats ignored` -- Sets the Helm release name for deployment using a parameter that will be prompted at deploy time.
