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.
Click to show internal directories.
Click to hide internal directories.