Skip to content
Docs Try Aspire
Docs Try

KubernetesHelmChartExtensions

Class static net8.0
📦 Aspire.Hosting.Kubernetes v13.4.0-preview.1.26281.18
Provides extension methods for adding and configuring external Helm charts in a Kubernetes environment.
namespace Aspire.Hosting;
public static class KubernetesHelmChartExtensions
{
// ...
}
AddHelmChart(IResourceBuilder<KubernetesEnvironmentResource>, string, string, string)extensionats export
IResourceBuilder<KubernetesHelmChartResource>
Adds an external Helm chart to be installed in the Kubernetes environment. The chart is installed via helm upgrade --install as a pipeline step after the main application Helm chart is deployed.
WithDestroy(IResourceBuilder<KubernetesHelmChartResource>)extensionats export
IResourceBuilder<KubernetesHelmChartResource>
Opts the Helm chart in to destroy-time uninstall. When set, aspire destroy will run helm uninstall for this release as part of the destroy pipeline.
WithForceConflicts(IResourceBuilder<KubernetesHelmChartResource>)extensionats export
IResourceBuilder<KubernetesHelmChartResource>
Opts the Helm chart in to helm upgrade --install --force-conflicts. When set, Helm's server-side apply forcibly takes over any fields owned by another field manager instead of failing with a conflict.
WithHelmValue(IResourceBuilder<KubernetesHelmChartResource>, string, string)extensionats export
IResourceBuilder<KubernetesHelmChartResource>
Sets a Helm value for the chart installation. Values are passed to helm upgrade --install via --set flags.
WithNamespace(IResourceBuilder<KubernetesHelmChartResource>, string)extensionats export
IResourceBuilder<KubernetesHelmChartResource>
Sets the Kubernetes namespace for the Helm chart installation. If not set, the namespace defaults to the chart resource name.
WithReleaseName(IResourceBuilder<KubernetesHelmChartResource>, string)extensionats export
IResourceBuilder<KubernetesHelmChartResource>
Sets the Helm release name for the chart installation. If not set, the release name defaults to the resource name.
View all methods