Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithKindClusterReference

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

Signature

methodWithKindClusterReferencebuilder
Configures a non-container resource to reference the Kind cluster by injecting kubeconfig environment variables.
WithKindClusterReference(kind KindClusterResource) ResourceWithEnvironment
kindKindClusterResourceThe Kind cluster resource builder.
ResourceWithEnvironment

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types:

typeCSharpAppResource
typeContainerResource
typeDotnetToolResource
typeExecutableResource
typeKubernetesAspireDashboardResource
typeProjectResource