KubernetesHelmChartExtensions
Class static net8.0
Provides extension methods for adding and configuring external Helm charts in a Kubernetes environment.
namespace Aspire.Hosting;
public static class KubernetesHelmChartExtensions{ // ...} 6 members
Methods6
Section titled MethodsAddHelmChart(IResourceBuilder<KubernetesEnvironmentResource>, string, string, string)extensionats exportIResourceBuilder<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 exportIResourceBuilder<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 exportIResourceBuilder<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 exportIResourceBuilder<KubernetesHelmChartResource> Sets a Helm value for the chart installation. Values are passed to
helm upgrade --install via --set flags. WithNamespace(IResourceBuilder<KubernetesHelmChartResource>, string)extensionats exportIResourceBuilder<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 exportIResourceBuilder<KubernetesHelmChartResource> Sets the Helm release name for the chart installation. If not set, the release name defaults to the resource name.