Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

K3sClusterResource.WithExtraArg

Method
📦 CommunityToolkit.Aspire.Hosting.K3s v13.6.1
type K3sClusterResource interface {
// ... omitted for brevity
WithExtraArg(arg string) K3sClusterResource
}

Signature

methodWithExtraArgbuilder
Appends a raw argument to the k3s server command line.
WithExtraArg(arg string) K3sClusterResource
argstringThe raw argument to append, e.g. --write-kubeconfig-mode=644. Call this method multiple times to append additional arguments.
K3sClusterResource

The same builder, for chaining.

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

Defined on

This method is defined on the following type: