Documentation ¶
Index ¶
- func NewCertsPhase() workflow.Phase
- func NewControlPlanePhase() workflow.Phase
- func NewEtcdPhase() workflow.Phase
- func NewKubeConfigFilePhase(kubeConfigFileName string) workflow.Phase
- func NewKubeConfigPhase() workflow.Phase
- func NewLoadBalancePhase() workflow.Phase
- func NewNamespacePhase() workflow.Phase
- func NewPreflightPhase() workflow.Phase
- func NewUploadKubeConfigPhase() workflow.Phase
- func NewUploadPKICertsPhase() workflow.Phase
- func NewWaitControlPlanePhase() workflow.Phase
- type InitData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 NewLoadBalancePhase ¶
NewLoadBalancePhase creates a kubeadm workflow phase that implements preflight checks for a new control-plane node.
func NewNamespacePhase ¶
NewNamespacePhase creates a kubeadm workflow phase that implements preflight checks for a new control-plane node.
func NewPreflightPhase ¶
NewPreflightPhase creates a kubeadm workflow phase that implements preflight checks for a new control-plane node.
func NewUploadKubeConfigPhase ¶
NewUploadConfigPhase returns the phase to uploadConfig
func NewUploadPKICertsPhase ¶
NewUploadPKICertsPhase returns the uploadPKICertsPhase phase
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.Set[string] CertificateWriteDir() string CertificateDir() string KubeConfigDir() string ManifestDir() string KubeletDir() string ExternalCA() bool OutputWriter() io.Writer Client() (clientset.Interface, error) FireflyClient() (clientset.Interface, error) Tokens() []string PatchesDir() string }
InitData is the interface to use for init phases. The "initData" type from "cmd/init.go" must satisfy this interface.