bootstrap

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 24 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 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 SkubaBootstrapper

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

func NewSkubaBootstrapper

func NewSkubaBootstrapper() *SkubaBootstrapper

func (*SkubaBootstrapper) Deploy

func (s *SkubaBootstrapper) Deploy(cluster *data.Cluster, before func() error) error

func (*SkubaBootstrapper) DownloadKubeConfig

func (s *SkubaBootstrapper) DownloadKubeConfig(cluster *data.Cluster, destDir string) (string, error)

func (*SkubaBootstrapper) Prepare

func (s *SkubaBootstrapper) Prepare(cluster *data.Cluster, force bool) error

func (*SkubaBootstrapper) SetNodeManager added in v0.2.0

func (s *SkubaBootstrapper) SetNodeManager(nodeManager node.Manager)

func (*SkubaBootstrapper) Type added in v0.2.0

func (s *SkubaBootstrapper) Type() string

type SkubaExtraOptions

type SkubaExtraOptions struct {
	RegisterCode string `json:"register_code"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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