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