Documentation ¶
Index ¶
- func NewAddonPhase() workflow.Phase
- func NewBootstrapTokenPhase() workflow.Phase
- func NewCertsPhase() workflow.Phase
- func NewControlPlanePhase() workflow.Phase
- func NewEtcdPhase() workflow.Phase
- func NewKubeConfigFilePhase(kubeConfigFileName string) workflow.Phase
- func NewKubeConfigPhase() workflow.Phase
- func NewKubeletFinalizePhase() workflow.Phase
- func NewKubeletStartPhase() workflow.Phase
- func NewMarkControlPlanePhase() workflow.Phase
- func NewPreflightPhase() workflow.Phase
- func NewUploadCertsPhase() workflow.Phase
- func NewUploadConfigPhase() workflow.Phase
- func NewWaitControlPlanePhase() workflow.Phase
- type InitData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddonPhase ¶
NewAddonPhase returns the addon Cobra command
func NewBootstrapTokenPhase ¶
NewBootstrapTokenPhase returns the phase to bootstrapToken
func NewCertsPhase ¶
NewCertsPhase returns the phase for the certs
func NewControlPlanePhase ¶
NewControlPlanePhase creates a kubeadm workflow phase that implements bootstrapping the control plane.
func NewEtcdPhase ¶
NewEtcdPhase creates a kubeadm workflow phase that implements handling of etcd.
func NewKubeConfigFilePhase ¶
NewKubeConfigFilePhase creates a kubeadm workflow phase that creates a kubeconfig file.
func NewKubeConfigPhase ¶
NewKubeConfigPhase creates a kubeadm workflow phase that creates all kubeconfig files necessary to establish the control plane and the admin kubeconfig file.
func NewKubeletFinalizePhase ¶ added in v1.17.0
NewKubeletFinalizePhase creates a kubeadm workflow phase that updates settings relevant to the kubelet after TLS bootstrap.
func NewKubeletStartPhase ¶
NewKubeletStartPhase creates a kubeadm workflow phase that start kubelet on a node.
func NewMarkControlPlanePhase ¶
NewMarkControlPlanePhase creates a kubeadm workflow phase that implements mark-controlplane checks.
func NewPreflightPhase ¶
NewPreflightPhase creates a kubeadm workflow phase that implements preflight checks for a new control-plane node.
func NewUploadCertsPhase ¶
NewUploadCertsPhase returns the uploadCerts phase
func NewUploadConfigPhase ¶
NewUploadConfigPhase returns the phase to uploadConfig
func NewWaitControlPlanePhase ¶
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 KustomizeDir() string PatchesDir() string }
InitData is the interface to use for init phases. The "initData" type from "cmd/init.go" must satisfy this interface.