Documentation ¶
Overview ¶
Package cloudinit implements kubeadm cloudinit functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInitControlPlane ¶
func NewInitControlPlane(input *ControlPlaneInput) ([]byte, error)
NewInitControlPlane returns the clouding string to be used on initializing a controlplane instance.
func NewJoinControlPlane ¶
func NewJoinControlPlane(input *ControlPlaneInput) ([]byte, error)
NewJoinControlPlane returns the cloudinit string to be used on joining a control plane instance.
Types ¶
type BaseUserData ¶
type BaseUserData struct { Header string PreK3sCommands []string PostK3sCommands []string AdditionalFiles []bootstrapv1.File WriteFiles []bootstrapv1.File ConfigFile bootstrapv1.File SentinelFileCommand string }
BaseUserData is shared across all the various types of files written to disk.
type ControlPlaneInput ¶
type ControlPlaneInput struct { BaseUserData secret.Certificates ServerConfiguration string }
ControlPlaneInput defines the context to generate a controlplane instance user data.
type NodeInput ¶
type NodeInput struct {
BaseUserData
}
NodeInput defines the context to generate an agent node cloud-init.
Click to show internal directories.
Click to hide internal directories.