common

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapClusterOpts added in v0.8.0

func BootstrapClusterOpts(clusterConfig *v1alpha1.Cluster, serverEndpoints ...string) ([]bootstrapper.BootstrapClusterOption, error)

func CPMachineTemplateBase added in v0.11.0

func CPMachineTemplateBase(clusterName string) string

func CPMachineTemplateName added in v0.8.0

func CPMachineTemplateName(clusterName string, now types.NowFunc) string

func EtcdMachineTemplateBase added in v0.11.0

func EtcdMachineTemplateBase(clusterName string) string

func EtcdMachineTemplateName added in v0.8.0

func EtcdMachineTemplateName(clusterName string, now types.NowFunc) string

func GenerateSSHAuthKey added in v0.8.0

func GenerateSSHAuthKey(writer filewriter.FileWriter) (string, error)

func GetAuditPolicy

func GetAuditPolicy() string

func KubeadmConfigTemplateName added in v0.8.0

func KubeadmConfigTemplateName(clusterName, workerNodeGroupName string, now types.NowFunc) string

func StripSshAuthorizedKeyComment added in v0.8.0

func StripSshAuthorizedKeyComment(key string) (string, error)

func WorkerMachineTemplateBase added in v0.11.0

func WorkerMachineTemplateBase(clusterName, workerNodeGroupName string) string

func WorkerMachineTemplateName added in v0.8.0

func WorkerMachineTemplateName(clusterName, workerNodeGroupName string, now types.NowFunc) string

Types

type SshAuthKeyGenerator added in v0.9.0

type SshAuthKeyGenerator struct{}

sshAuthKeyGenerator satisfies SSHAuthKeyGenerator. It exists to wrap the common key generation function so we can isolate the RNG in testing.

func (SshAuthKeyGenerator) GenerateSSHAuthKey added in v0.9.0

func (SshAuthKeyGenerator) GenerateSSHAuthKey(w filewriter.FileWriter) (string, error)

Jump to

Keyboard shortcuts

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