IKindResource
type IKindResource interface{}Methods
Session (the default), the cluster is deleted on graceful shutdown or other process-exit signals on a best-effort basis. When Persistent, the cluster survives AppHost restarts and is reused on next startup.WithClusterLifetime(lifetime ClusterLifetime) IKindResourceParameters
lifetimeClusterLifetime The desired cluster lifetime.Returns
IKindResource A reference to the I.
Returns a handle; failures surface later via Err().
WithKubernetesVersion(version string) IKindResourceParameters
versionstringThe Kubernetes version (e.g., "v1.32.2").Returns
IKindResource A reference to the I.
Returns a handle; failures surface later via Err().
WithNodeImage(image string) IKindResourceParameters
imagestringThe fully qualified Kind node image, such as kindest/node:v1.33.1 . This overrides the image that would otherwise be derived from WithKubernetesVersion .Returns
IKindResource A reference to the I.
Returns a handle; failures surface later via Err().
WithNodeMount( hostPath string, containerPath string, options ...*WithNodeMountOptions,) IKindResourceParameters
hostPath stringThe path on the host. Relative paths are resolved against the AppHost directory before being written to the Kind config.containerPath stringThe absolute path inside the Kind node container.options...*WithNodeMountOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithNodeMountOptions argument.
ReadOnly *booltrue to mount the path read-only.Returns
IKindResource A reference to the I.
Returns a handle; failures surface later via Err().
WithWorkerNodes(count float64) IKindResourceParameters
countfloat64The number of worker nodes. Must be zero or greater.Returns
IKindResource A reference to the I.
Returns a handle; failures surface later via Err().