Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterDNS ¶
func GetClusterDNS(clusterConfig *api.ClusterConfig) (string, error)
GetClusterDNS returns the DNS address to use
func ProtectTOMLKeys ¶
ProtectTOMLKeys processes a tree finding and replacing dotted keys with quoted keys to retain the configured settings. This prevents TOML parsers from deserializing keys into nested key-value pairs at each dot encountered - which is not uncommon in the context of Kubernetes' labels, annotations, and taints.
Types ¶
type AmazonLinux2 ¶
type AmazonLinux2 struct {
// contains filtered or unexported fields
}
func NewAL2Bootstrapper ¶
func NewAL2Bootstrapper(clusterConfig *api.ClusterConfig, ng *api.NodeGroup, clusterDNS string) *AmazonLinux2
func (*AmazonLinux2) UserData ¶
func (b *AmazonLinux2) UserData() (string, error)
type Bootstrapper ¶
type Bootstrapper interface { // UserData returns userdata for bootstrapping nodes UserData() (string, error) }
func NewBootstrapper ¶
func NewBootstrapper(clusterConfig *api.ClusterConfig, ng *api.NodeGroup) (Bootstrapper, error)
NewBootstrapper returns the correct bootstrapper for the AMI family
func NewManagedBootstrapper ¶
func NewManagedBootstrapper(clusterConfig *api.ClusterConfig, ng *api.ManagedNodeGroup) (Bootstrapper, error)
NewManagedBootstrapper creates a new bootstrapper for managed nodegroups based on the AMI family
type Bottlerocket ¶
type Bottlerocket struct {
// contains filtered or unexported fields
}
func NewBottlerocketBootstrapper ¶
func NewBottlerocketBootstrapper(clusterConfig *api.ClusterConfig, np api.NodePool) *Bottlerocket
func (*Bottlerocket) UserData ¶
func (b *Bottlerocket) UserData() (string, error)
NewUserDataForBottlerocket generates TOML userdata for bootstrapping a Bottlerocket node.
type ManagedAL2 ¶
type ManagedAL2 struct { // UserDataMimeBoundary sets the MIME boundary for user data UserDataMimeBoundary string // contains filtered or unexported fields }
ManagedAL2 is a bootstrapper for managed Amazon Linux 2 nodegroups
func NewManagedAL2Bootstrapper ¶
func NewManagedAL2Bootstrapper(ng *api.ManagedNodeGroup) *ManagedAL2
NewManagedAL2Bootstrapper creates a new ManagedAL2 bootstrapper
func (*ManagedAL2) UserData ¶
func (m *ManagedAL2) UserData() (string, error)
UserData returns user data for AL2 managed nodegroups
type ManagedBottlerocket ¶
type ManagedBottlerocket struct {
// contains filtered or unexported fields
}
func NewManagedBottlerocketBootstrapper ¶
func NewManagedBottlerocketBootstrapper(clusterConfig *api.ClusterConfig, ng *api.ManagedNodeGroup) *ManagedBottlerocket
NewManagedBottlerocketBootstrapper returns a new bootstrapper for managed Bottlerocket.
func (*ManagedBottlerocket) UserData ¶
func (b *ManagedBottlerocket) UserData() (string, error)
UserData generates TOML userdata for bootstrapping a Bottlerocket node.
type ManagedWindows ¶
type ManagedWindows struct {
NodeGroup *api.ManagedNodeGroup
}
ManagedWindows implements a bootstrapper for managed Windows nodegroups.
func (*ManagedWindows) UserData ¶
func (w *ManagedWindows) UserData() (string, error)
UserData returns the userdata.
type Ubuntu ¶
type Ubuntu struct {
// contains filtered or unexported fields
}