cloudinit

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInitControlPlane

func NewInitControlPlane(input *ControlPlaneInput) ([]byte, error)

NewInitControlPlane returns the user data string to be used on a controlplane instance.

func NewJoinControlPlane

func NewJoinControlPlane(input *ControlPlaneInput) ([]byte, error)

NewInitControlPlane returns the user data string to be used on a controlplane instance.

func NewWorker

func NewWorker(input *WorkerInput) ([]byte, error)

NewInitControlPlane returns the user data string to be used on a controlplane instance.

Types

type BaseUserData

type BaseUserData struct {
	Header                     string
	PreK3sCommands             []string
	PostK3sCommands            []string
	AdditionalFiles            []bootstrapv1.File
	WriteFiles                 []bootstrapv1.File
	ConfigFile                 bootstrapv1.File
	K3sVersion                 string
	AirGapped                  bool
	AirGappedInstallScriptPath string
	SentinelFileCommand        string
}

BaseUserData is shared across all the various types of files written to disk.

type ControlPlaneInput

type ControlPlaneInput struct {
	BaseUserData
	secret.Certificates
}

ControlPlaneInput defines the context to generate a controlplane instance user data.

type WorkerInput

type WorkerInput struct {
	BaseUserData
}

ControlPlaneInput defines the context to generate a controlplane instance user data.

Jump to

Keyboard shortcuts

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