# WithCrdWaitRetry

- Module: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/go/communitytoolkit.aspire.hosting.kind.md)
- Version: `13.5.1-beta.895`
- Kind: `method`
- Defined on: [`KindHelmChartResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindhelmchartresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/2c26a4c9649531d17fce3cbc4c5dea00d61d279c)

Retries Helm installs that race newly-created CRDs which have not reached the `Established` condition yet.

## Remarks

This is useful for charts that create CRDs and immediately render custom resources
that depend on those CRDs. Between attempts, Kind waits for newly observed CRDs
to report `Established`.

## Definition

```go
func (KindHelmChartResource) WithCrdWaitRetry(options ...*WithCrdWaitRetryOptions) KindHelmChartResource
```

## Parameters

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

## Options

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

- `MaxAttempts` (`*float64`) -- The total number of install attempts. Must be 2 or greater.
- `Backoff` (`*float64`) -- The initial delay before retrying. Later retries back off exponentially. When `null`, Kind uses a 5 second initial backoff.
- `CrdWaitTimeout` (`*float64`) -- The timeout used while waiting for newly discovered CRDs to become `Established` between retry attempts. When `null`, Kind uses a 5 minute timeout.

## Returns

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

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

## Applies to

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