phases

package
v0.0.0-...-35c3564 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 NewLoadBalancePhase

func NewLoadBalancePhase() workflow.Phase

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

func NewNamespacePhase

func NewNamespacePhase() workflow.Phase

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

func NewPreflightPhase

func NewPreflightPhase() workflow.Phase

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

func NewUploadKubeConfigPhase

func NewUploadKubeConfigPhase() workflow.Phase

NewUploadConfigPhase returns the phase to uploadConfig

func NewUploadPKICertsPhase

func NewUploadPKICertsPhase() workflow.Phase

NewUploadPKICertsPhase returns the uploadPKICertsPhase phase

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.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.

Jump to

Keyboard shortcuts

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