phases

package
v1.14.7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddonPhase

func NewAddonPhase() workflow.Phase

NewAddonPhase returns the addon Cobra command

func NewBootstrapTokenPhase

func NewBootstrapTokenPhase() workflow.Phase

NewBootstrapTokenPhase returns the phase to bootstrapToken

func NewCertsPhase

func NewCertsPhase() workflow.Phase

NewCertsPhase returns the phase for the certs

func NewControlPlanePhase

func NewControlPlanePhase() workflow.Phase

NewControlPlanePhase creates a kubeadm workflow phase that implements bootstrapping the control plane.

func NewEtcdPhase

func NewEtcdPhase() workflow.Phase

NewEtcdPhase creates a kubeadm workflow phase that implements handling of etcd.

func NewKubeConfigFilePhase

func NewKubeConfigFilePhase(kubeConfigFileName string) workflow.Phase

NewKubeConfigFilePhase creates a kubeadm workflow phase that creates a kubeconfig file.

func NewKubeConfigPhase

func NewKubeConfigPhase() workflow.Phase

NewKubeConfigPhase creates a kubeadm workflow phase that creates all kubeconfig files necessary to establish the control plane and the admin kubeconfig file.

func NewKubeletStartPhase

func NewKubeletStartPhase() workflow.Phase

NewKubeletStartPhase creates a kubeadm workflow phase that start kubelet on a node.

func NewMarkControlPlanePhase

func NewMarkControlPlanePhase() workflow.Phase

NewMarkControlPlanePhase creates a kubeadm workflow phase that implements mark-controlplane checks.

func NewPreflightPhase

func NewPreflightPhase() workflow.Phase

NewPreflightPhase creates a kubeadm workflow phase that implements preflight checks for a new control-plane node.

func NewUploadCertsPhase

func NewUploadCertsPhase() workflow.Phase

NewUploadCertsPhase returns the uploadCerts phase

func NewUploadConfigPhase

func NewUploadConfigPhase() workflow.Phase

NewUploadConfigPhase returns the phase to uploadConfig

func NewWaitControlPlanePhase

func NewWaitControlPlanePhase() workflow.Phase

NewWaitControlPlanePhase is a hidden phase that runs after the control-plane and etcd phases

Types

type InitData

type InitData interface {
	UploadCerts() bool
	CertificateKey() string
	SetCertificateKey(key string)
	SkipCertificateKeyPrint() bool
	Cfg() *kubeadmapi.InitConfiguration
	DryRun() bool
	SkipTokenPrint() bool
	IgnorePreflightErrors() sets.String
	CertificateWriteDir() string
	CertificateDir() string
	KubeConfigDir() string
	KubeConfigPath() string
	ManifestDir() string
	KubeletDir() string
	ExternalCA() bool
	OutputWriter() io.Writer
	Client() (clientset.Interface, error)
	Tokens() []string
}

InitData is the interface to use for init phases. The "initData" type from "cmd/init.go" must satisfy this interface.

Jump to

Keyboard shortcuts

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