Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

KubernetesHelmChartResource

Handle
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7

Represents an external Helm chart to be installed into a Kubernetes environment. This resource models a Helm chart from a repository (OCI or HTTP) that will be installed as a pipeline step after the main application Helm chart is deployed.

type KubernetesHelmChartResource interface {
Resource
ResourceWithParent
}

Methods

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.
WithHelmChartDestroy() KubernetesHelmChartResource
KubernetesHelmChartResource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

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.
WithHelmChartForceConflicts() KubernetesHelmChartResource
KubernetesHelmChartResource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

Sets the Kubernetes namespace for the Helm chart installation. If not set, the namespace defaults to the chart resource name.
WithHelmChartNamespace(namespace string) KubernetesHelmChartResource
namespacestringThe namespace to install the chart into.
KubernetesHelmChartResource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

Sets the Helm release name for the chart installation. If not set, the release name defaults to the resource name.
WithHelmChartReleaseName(releaseName string) KubernetesHelmChartResource
releaseNamestringThe Helm release name.
KubernetesHelmChartResource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

methodWithHelmValuebuilder
Sets a Helm value for the chart installation. Values are passed to helm upgrade --install via --set flags.
WithHelmValue(
key string,
value string,
) KubernetesHelmChartResource
keystringThe value key using dot notation (e.g., config.enableGatewayAPI).
valuestringThe value to set.
KubernetesHelmChartResource

The resource builder for chaining.

Returns a handle; failures surface later via Err().