Help us shape the future of Go! Take the 2026 Go Developer Survey

flex

package
v0.0.0-...-8fd779a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKubeVer = "1.34.2"
)

Variables

This section is empty.

Functions

func UserData

func UserData(opts ...Option) (*cloudinit.UserData, error)

Types

type Option

type Option func(*Options)

Option is a functional option for UserData.

func WithArch

func WithArch(arch string) Option

WithArch sets the CPU architecture for the flex node binary (e.g. "amd64", "arm64").

func WithEnableNvidiaGPURuntime

func WithEnableNvidiaGPURuntime(enable bool) Option

WithEnableNvidiaGPURuntime configures the containerd Nvidia GPU runtime.

func WithKubeVersion

func WithKubeVersion(v string) Option

WithKubeVersion sets the Kubernetes version for the downloaded binaries.

func WithKubeadmConfig

func WithKubeadmConfig(cfg *kubeadmapi.Config) Option

WithKubeadmConfig sets the kubeadm join configuration.

type Options

type Options struct {
	EnableNvidiaGPURuntime bool
	KubeVersion            string
	Arch                   string
	KubeadmConfig          *kubeadmapi.Config
}

Options configures how the flex node userdata is generated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL