# K3sClusterResource.WithHelmImage

- Module: [CommunityToolkit.Aspire.Hosting.K3s](/reference/api/go/communitytoolkit.aspire.hosting.k3s.md)
- Defined on: [K3sClusterResource](/reference/api/go/communitytoolkit.aspire.hosting.k3s/k3sclusterresource.md)
- Version: `13.6.1`
- Kind: `method`

Overrides the container image used to run `helm upgrade --install` for all `HelmReleaseResource` children of this cluster.

## Definition

```go
type K3sClusterResource interface {
    // ... omitted for brevity
    WithHelmImage(options ...*WithHelmImageOptions) K3sClusterResource
}
```

## Signature

```go
WithHelmImage(options ...*WithHelmImageOptions) K3sClusterResource
```

## Parameters

- `options` (`...*WithHelmImageOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithHelmImageOptions` argument.

- `Tag` (`*string`) -- Image tag, e.g. `3.18.0`. `null` keeps the current value.
- `Image` (`*string`) -- Image name, e.g. `alpine/helm`. `null` keeps the current value.
- `Registry` (`*string`) -- Registry, e.g. `docker.io`. `null` keeps the current value.

## Returns

[`K3sClusterResource`](/reference/api/go/communitytoolkit.aspire.hosting.k3s/k3sclusterresource.md) -- The same builder, for chaining.

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

## Defined on

- [K3sClusterResource](/reference/api/go/communitytoolkit.aspire.hosting.k3s/k3sclusterresource.md) -- `handle`
