Documentation ¶
Index ¶
- func EnsureAllAddons(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error
- func NewCertsPhase() workflow.Phase
- func NewCmdAddon() *cobra.Command
- func NewCmdBootstrapToken() *cobra.Command
- func NewCmdMarkMaster() *cobra.Command
- func NewCmdSelfhosting() *cobra.Command
- func NewControlPlanePhase() workflow.Phase
- func NewControlPlaneWaiter(dryRun bool, timeout time.Duration, client clientset.Interface, out io.Writer) (apiclient.Waiter, error)
- func NewEtcdPhase() workflow.Phase
- func NewKubeConfigFilePhase(kubeConfigFileName string) workflow.Phase
- func NewKubeConfigPhase() workflow.Phase
- func NewKubeletStartPhase() workflow.Phase
- func NewPreflightMasterPhase() workflow.Phase
- func NewSubCmdBootstrapToken(kubeConfigFile *string) *cobra.Command
- func NewSubCmdBootstrapTokenAll(kubeConfigFile *string) *cobra.Command
- func NewSubCmdClusterInfo(kubeConfigFile *string) *cobra.Command
- func NewSubCmdNodeBootstrapToken(kubeConfigFile *string) *cobra.Command
- func NewSubCmdNodeBootstrapTokenAutoApprove(kubeConfigFile *string) *cobra.Command
- func NewSubCmdNodeBootstrapTokenPostCSRs(kubeConfigFile *string) *cobra.Command
- func NewUploadConfigPhase() workflow.Phase
- func NewWaitControlPlanePhase() workflow.Phase
- func SetKubernetesVersion(cfg *kubeadmapiv1beta1.InitConfiguration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureAllAddons ¶ added in v1.8.0
func EnsureAllAddons(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error
EnsureAllAddons installs all addons to a Kubernetes cluster
func NewCertsPhase ¶ added in v1.13.0
NewCertsPhase returns the phase for the certs
func NewCmdAddon ¶ added in v1.8.0
NewCmdAddon returns the addon Cobra command
func NewCmdBootstrapToken ¶ added in v1.8.0
NewCmdBootstrapToken returns the Cobra command for running the mark-master phase
func NewCmdMarkMaster ¶ added in v1.8.0
NewCmdMarkMaster returns the Cobra command for running the mark-master phase
func NewCmdSelfhosting ¶ added in v1.8.0
NewCmdSelfhosting returns the self-hosting Cobra command
func NewControlPlanePhase ¶ added in v1.13.0
NewControlPlanePhase creates a kubeadm workflow phase that implements bootstrapping the control plane.
func NewControlPlaneWaiter ¶
func NewControlPlaneWaiter(dryRun bool, timeout time.Duration, client clientset.Interface, out io.Writer) (apiclient.Waiter, error)
NewControlPlaneWaiter returns a new waiter that is used to wait on the control plane to boot up. TODO: make private (lowercase) after self-hosting phase is removed.
func NewEtcdPhase ¶ added in v1.13.0
NewEtcdPhase creates a kubeadm workflow phase that implements handling of etcd.
func NewKubeConfigFilePhase ¶ added in v1.13.0
NewKubeConfigFilePhase creates a kubeadm workflow phase that creates a kubeconfig file.
func NewKubeConfigPhase ¶ added in v1.13.0
NewKubeConfigPhase creates a kubeadm workflow phase that creates all kubeconfig files necessary to establish the control plane and the admin kubeconfig file.
func NewKubeletStartPhase ¶ added in v1.13.0
NewKubeletStartPhase creates a kubeadm workflow phase that start kubelet on a node.
func NewPreflightMasterPhase ¶ added in v1.13.0
NewPreflightMasterPhase creates a kubeadm workflow phase that implements preflight checks for a new master node.
func NewSubCmdBootstrapToken ¶ added in v1.9.0
NewSubCmdBootstrapToken returns the Cobra command for running the create token phase
func NewSubCmdBootstrapTokenAll ¶ added in v1.9.0
NewSubCmdBootstrapTokenAll returns the Cobra command for running the token all sub-phase
func NewSubCmdClusterInfo ¶ added in v1.8.0
NewSubCmdClusterInfo returns the Cobra command for running the cluster-info sub-phase
func NewSubCmdNodeBootstrapToken ¶ added in v1.8.0
NewSubCmdNodeBootstrapToken returns the Cobra command for running the node sub-phase
func NewSubCmdNodeBootstrapTokenAutoApprove ¶ added in v1.8.0
NewSubCmdNodeBootstrapTokenAutoApprove returns the Cobra command for running the allow-auto-approve sub-phase
func NewSubCmdNodeBootstrapTokenPostCSRs ¶ added in v1.8.0
NewSubCmdNodeBootstrapTokenPostCSRs returns the Cobra command for running the allow-post-csrs sub-phase
func NewUploadConfigPhase ¶ added in v1.13.0
NewUploadConfigPhase returns the phase to uploadConfig
func NewWaitControlPlanePhase ¶ added in v1.13.0
NewWaitControlPlanePhase is a hidden phase that runs after the control-plane and etcd phases
func SetKubernetesVersion ¶ added in v1.12.0
func SetKubernetesVersion(cfg *kubeadmapiv1beta1.InitConfiguration)
SetKubernetesVersion gets the current Kubeadm version and sets it as KubeadmVersion in the config, unless it's already set to a value different from the default.
Types ¶
This section is empty.