Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithKindContainerReference

Method
📦 CommunityToolkit.Aspire.Hosting.Kind v13.5.1-beta.895
func (ContainerResource) WithKindContainerReference(kind KindClusterResource) ContainerResource

Signature

methodWithKindContainerReferencebuilder
Configures a container resource to reference the Kind cluster by bind-mounting the container-compatible kubeconfig, injecting environment variables, and connecting to the Kind container network.
WithKindContainerReference(kind KindClusterResource) ContainerResource
kindKindClusterResourceThe Kind cluster resource builder.
ContainerResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types: