Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

K3sClusterResource.WithKubectlImage

Method
📦 CommunityToolkit.Aspire.Hosting.K3s v13.6.1
type K3sClusterResource interface {
// ... omitted for brevity
WithKubectlImage(options ...*WithKubectlImageOptions) K3sClusterResource
}

Signature

methodWithKubectlImagebuilder
Overrides the container image used to run kubectl apply for all K8sManifestResource children of this cluster.
WithKubectlImage(options ...*WithKubectlImageOptions) K3sClusterResource
options...*WithKubectlImageOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithKubectlImageOptions argument.

Tag*stringImage tag, e.g. 1.37.0. null keeps the current value.
Image*stringImage name, e.g. alpine/kubectl. null keeps the current value.
Registry*stringRegistry, e.g. docker.io. null keeps the current value.
K3sClusterResource

The same builder, for chaining.

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

Defined on

This method is defined on the following type: