# WithHelmValue

- Module: [CommunityToolkit.Aspire.Hosting.K3s](/reference/api/go/communitytoolkit.aspire.hosting.k3s.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: [`HelmReleaseResource`](/reference/api/go/communitytoolkit.aspire.hosting.k3s/helmreleaseresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Adds a Helm `--set key=value` override to the release.

## Remarks

Helm `--set` metacharacters (`,`, `{`, `}`, `\`) in
`key` or `value` are automatically escaped.
For values that contain these characters in ways Helm cannot represent safely,
use `WithHelmValuesFile` instead.

## Definition

```go
func (HelmReleaseResource) WithHelmValue(
    key string,
    value string,
) HelmReleaseResource
```

## Parameters

- `key` (`string`) -- The Helm value path using dot notation, e.g. `server.service.type`. If the same key is set more than once, the last call wins.
- `value` (`string`) -- The value to assign.

## Returns

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

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

## Applies to

- [`HelmReleaseResource`](/reference/api/go/communitytoolkit.aspire.hosting.k3s/helmreleaseresource.md)
