bootstrap

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GenerateSaveBootstrapperVersions added in v0.2.0

func GenerateSaveBootstrapperVersions(bootstrapperType string, configManager pkgconfig.Manager) (
	bootstrapperLatestVersion pkgconfig.BootstrapperVersioner,
	bootstrapperVersions []pkgconfig.BootstrapperVersioner,
	err error,
)

func IsValid

func IsValid(bootstrapper string) bool

Types

type Bootstrapper

type Bootstrapper interface {
	Deploy(cluster *data.Cluster, before func() error) error
	DownloadKubeConfig(cluster *data.Cluster, destDir string) (string, error)
	Prepare(cluster *data.Cluster, force bool) error
	Type() string
}

func New

func New(bootstrapper string) Bootstrapper

type K0sBootstrapper added in v0.3.4

type K0sBootstrapper struct {
	// contains filtered or unexported fields
}

func NewK0sBootstrapper added in v0.3.4

func NewK0sBootstrapper() *K0sBootstrapper

func (*K0sBootstrapper) Deploy added in v0.3.4

func (k *K0sBootstrapper) Deploy(cluster *data.Cluster, before func() error) error

func (*K0sBootstrapper) DownloadKubeConfig added in v0.3.4

func (k *K0sBootstrapper) DownloadKubeConfig(cluster *data.Cluster, destDir string) (string, error)

func (*K0sBootstrapper) Prepare added in v0.3.4

func (k *K0sBootstrapper) Prepare(cluster *data.Cluster, force bool) error

func (*K0sBootstrapper) SetNodeManager added in v0.3.4

func (k *K0sBootstrapper) SetNodeManager(nodeManager node.Manager)

func (*K0sBootstrapper) Type added in v0.3.4

func (k *K0sBootstrapper) Type() string

type K0sExtraOptions added in v0.3.4

type K0sExtraOptions struct {
	ClusterConfigFile    string   `json:"cluster_config_file"`
	ServerInstallOptions []string `json:"server_install_options"`
	WorkerInstallOptions []string `json:"worker_install_options"`
	ExtraOptions         []string `json:"extra_options"`
}

type K3sBootstrapper

type K3sBootstrapper struct {
	// contains filtered or unexported fields
}

func NewK3sBootstrapper

func NewK3sBootstrapper() *K3sBootstrapper

func (*K3sBootstrapper) Deploy

func (k *K3sBootstrapper) Deploy(cluster *data.Cluster, before func() error) error

func (*K3sBootstrapper) DownloadKubeConfig

func (k *K3sBootstrapper) DownloadKubeConfig(cluster *data.Cluster, destDir string) (string, error)

func (*K3sBootstrapper) Prepare

func (k *K3sBootstrapper) Prepare(cluster *data.Cluster, force bool) error

func (*K3sBootstrapper) SetNodeManager added in v0.2.0

func (k *K3sBootstrapper) SetNodeManager(nodeManager node.Manager)

func (*K3sBootstrapper) Type added in v0.2.0

func (k *K3sBootstrapper) Type() string

type K3sExtraOptions

type K3sExtraOptions struct {
	ServerInstallOptions []string `json:"server_install_options"`
	AgentInstallOptions  []string `json:"agent_install_options"`
	ExtraOptions         []string `json:"extra_options"`
}

type KubeadmBootstrapper

type KubeadmBootstrapper struct {
	// contains filtered or unexported fields
}

func NewKubeadmBootstrapper

func NewKubeadmBootstrapper() *KubeadmBootstrapper

func (*KubeadmBootstrapper) Deploy

func (k *KubeadmBootstrapper) Deploy(cluster *data.Cluster, before func() error) error

func (*KubeadmBootstrapper) DownloadKubeConfig

func (k *KubeadmBootstrapper) DownloadKubeConfig(cluster *data.Cluster, destDir string) (string, error)

func (*KubeadmBootstrapper) Prepare

func (k *KubeadmBootstrapper) Prepare(cluster *data.Cluster, force bool) error

func (*KubeadmBootstrapper) SetConfigManager added in v0.2.0

func (k *KubeadmBootstrapper) SetConfigManager(configManager pkgconfig.Manager)

func (*KubeadmBootstrapper) SetNodeManager added in v0.2.0

func (k *KubeadmBootstrapper) SetNodeManager(nodeManager node.Manager)

func (*KubeadmBootstrapper) SetVersionFinder added in v0.2.0

func (k *KubeadmBootstrapper) SetVersionFinder(versionFinder versionfinder.Finder)

func (*KubeadmBootstrapper) Type added in v0.2.0

func (k *KubeadmBootstrapper) Type() string

type KubeadmExtraOptions added in v0.3.0

type KubeadmExtraOptions struct {
	InitOptions              []string `json:"init_options"`
	ApiServerOptions         []string `json:"api_server_options"`
	ControllerManagerOptions []string `json:"controller_manager_options"`
	SchedulerOptions         []string `json:"scheduler_options"`
}

type RKE2Bootstrapper added in v0.3.4

type RKE2Bootstrapper struct {
	// contains filtered or unexported fields
}

func NewRKE2Bootstrapper added in v0.3.4

func NewRKE2Bootstrapper() *RKE2Bootstrapper

func (*RKE2Bootstrapper) Deploy added in v0.3.4

func (r *RKE2Bootstrapper) Deploy(cluster *data.Cluster, before func() error) error

func (*RKE2Bootstrapper) DownloadKubeConfig added in v0.3.4

func (r *RKE2Bootstrapper) DownloadKubeConfig(cluster *data.Cluster, destDir string) (string, error)

func (*RKE2Bootstrapper) Prepare added in v0.3.4

func (r *RKE2Bootstrapper) Prepare(cluster *data.Cluster, force bool) error

func (*RKE2Bootstrapper) SetNodeManager added in v0.3.4

func (r *RKE2Bootstrapper) SetNodeManager(nodeManager node.Manager)

func (*RKE2Bootstrapper) Type added in v0.3.4

func (r *RKE2Bootstrapper) Type() string

type RKE2ExtraOptions added in v0.3.4

type RKE2ExtraOptions struct {
	ServerInstallOptions []string `json:"server_install_options"`
	AgentInstallOptions  []string `json:"agent_install_options"`
	ExtraOptions         []string `json:"extra_options"`
}

type RKEBootstrapper added in v0.3.3

type RKEBootstrapper struct {
	// contains filtered or unexported fields
}

func NewRKEBootstrapper added in v0.3.3

func NewRKEBootstrapper() *RKEBootstrapper

func (*RKEBootstrapper) Deploy added in v0.3.3

func (k *RKEBootstrapper) Deploy(cluster *data.Cluster, before func() error) error

func (*RKEBootstrapper) DownloadKubeConfig added in v0.3.3

func (k *RKEBootstrapper) DownloadKubeConfig(cluster *data.Cluster, destDir string) (string, error)

func (*RKEBootstrapper) Prepare added in v0.3.3

func (k *RKEBootstrapper) Prepare(cluster *data.Cluster, force bool) error

func (*RKEBootstrapper) SetNodeManager added in v0.3.3

func (k *RKEBootstrapper) SetNodeManager(nodeManager node.Manager)

func (*RKEBootstrapper) Type added in v0.3.3

func (k *RKEBootstrapper) Type() string

type RKEExtraOptions added in v0.3.3

type RKEExtraOptions struct {
	ClusterConfigFile string `json:"cluster_config_file"`
	KubernetesVersion string `json:"kubernetes_version"`
}

type RancherdBootstrapper added in v0.3.5

type RancherdBootstrapper struct {
	*RKE2Bootstrapper
}

func NewRancherdBootstrapper added in v0.3.5

func NewRancherdBootstrapper() *RancherdBootstrapper

func (*RancherdBootstrapper) Deploy added in v0.3.5

func (r *RancherdBootstrapper) Deploy(cluster *data.Cluster, before func() error) error

func (*RancherdBootstrapper) DownloadKubeConfig added in v0.3.5

func (r *RancherdBootstrapper) DownloadKubeConfig(cluster *data.Cluster, destDir string) (string, error)

func (*RancherdBootstrapper) Prepare added in v0.3.5

func (r *RancherdBootstrapper) Prepare(cluster *data.Cluster, force bool) error

func (*RancherdBootstrapper) SetNodeManager added in v0.3.5

func (r *RancherdBootstrapper) SetNodeManager(nodeManager node.Manager)

func (*RancherdBootstrapper) Type added in v0.3.5

func (r *RancherdBootstrapper) Type() string

type RancherdExtraOptions added in v0.3.5

type RancherdExtraOptions struct {
	ServerInstallOptions []string `json:"server_install_options"`
	AgentInstallOptions  []string `json:"agent_install_options"`
	ExtraOptions         []string `json:"extra_options"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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