cloudinit

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 8 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)

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

nolint:gofumpt

func NewJoinWorker

func NewJoinWorker(input *BaseUserData) ([]byte, error)

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

nolint:gofumpt

Types

type BaseUserData

type BaseUserData struct {
	Header                  string
	PreRKE2Commands         []string
	DeployRKE2Commands      []string
	PostRKE2Commands        []string
	WriteFiles              []bootstrapv1.File
	ConfigFile              bootstrapv1.File
	RKE2Version             string
	SentinelFileCommand     string
	AirGapped               bool
	AirGappedChecksum       string
	NTPServers              []string
	CISEnabled              bool
	AdditionalCloudInit     string
	AdditionalArbitraryData map[string]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.

Jump to

Keyboard shortcuts

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