# KindHelmChartResource.WithHelmStringValue

- Module: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/go/communitytoolkit.aspire.hosting.kind.md)
- Defined on: [KindHelmChartResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindhelmchartresource.md)
- Version: `13.5.1-beta.895`
- Kind: `method`

Sets a Helm value while preserving it as a string (maps to `helm install --set-string key=value`).

## Remarks

Use this overload when Helm would otherwise coerce the value into a numeric, boolean,
or other non-string type. If the same key was previously configured with
`WithHelmValue`,
the string-preserving value replaces it.

## Definition

```go
type KindHelmChartResource interface {
    // ... omitted for brevity
    WithHelmStringValue(
        key string,
        value string,
    ) KindHelmChartResource
}
```

## Signature

```go
WithHelmStringValue(
    key string,
    value string,
) KindHelmChartResource
```

## Parameters

- `key` (`string`) -- The Helm value key.
- `value` (`string`) -- The Helm value.

## Returns

[`KindHelmChartResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindhelmchartresource.md) -- A reference to the `IResourceBuilder`.

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

## Defined on

- [KindHelmChartResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindhelmchartresource.md) -- `handle`
