Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithNamespace

Method
📦 CommunityToolkit.Aspire.Hosting.Kind v13.5.1-beta.895
func (KindDeployedResource) WithNamespace(namespace string) KindDeployedResource

Signature

methodWithNamespacebuilder
Sets the Kubernetes namespace for the deployment.
WithNamespace(namespace string) KindDeployedResource
namespacestringThe Kubernetes namespace.
KindDeployedResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types: