# HelmChartOptions

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.4.0-preview.1.26281.18`
- Namespace: `Aspire.Hosting.Kubernetes`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/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

- [WithChartDescription(string)](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions/methods.md#withchartdescription-string) : [HelmChartOptions](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions.md) `ats ignored` -- Sets the Helm chart description written to the generated `Chart.yaml`.
- [WithChartDescription(IResourceBuilder<ParameterResource>)](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions/methods.md#withchartdescription-iresourcebuilder-parameterresource) : [HelmChartOptions](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions.md) `ats ignored` -- Sets the Helm chart description written to the generated `Chart.yaml` using a parameter that will be prompted at deploy time.
- [WithChartName(string)](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions/methods.md#withchartname-string) : [HelmChartOptions](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions.md) `ats ignored` -- Sets the Helm chart name written to the generated `Chart.yaml`.
- [WithChartName(IResourceBuilder<ParameterResource>)](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions/methods.md#withchartname-iresourcebuilder-parameterresource) : [HelmChartOptions](/reference/api/csharp/aspire.hosting.kubernetes/helmchartoptions.md) `ats ignored` -- Sets the Helm chart name written to the generated `Chart.yaml` using a parameter that will be prompted at deploy time.
- [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.
