package node

import "k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/upgrade/node"

Package node holds phases of "kubeadm upgrade node".

Index

Functions

func NewControlPlane

func NewControlPlane() workflow.Phase

NewControlPlane creates a kubeadm workflow phase that implements handling of control-plane upgrade.

func NewKubeconfigPhase

func NewKubeconfigPhase() workflow.Phase

NewKubeconfigPhase creates a kubeadm workflow phase that implements handling of kubeconfig upgrade.

func NewKubeletConfigPhase

func NewKubeletConfigPhase() workflow.Phase

NewKubeletConfigPhase creates a kubeadm workflow phase that implements handling of kubelet-config upgrade.

func NewPreflightPhase

func NewPreflightPhase() workflow.Phase

NewPreflightPhase creates a kubeadm workflow phase that implements preflight checks for a new node join

Types

type Data

type Data interface {
	EtcdUpgrade() bool
	RenewCerts() bool
	DryRun() bool
	Cfg() *kubeadmapi.UpgradeConfiguration
	InitCfg() *kubeadmapi.InitConfiguration
	IsControlPlaneNode() bool
	Client() clientset.Interface
	IgnorePreflightErrors() sets.Set[string]
	PatchesDir() string
	KubeConfigPath() string
	OutputWriter() io.Writer
}

Data is the interface to use for kubeadm upgrade node phases. The "nodeData" type from "cmd/upgrade/node.go" must satisfy this interface.

Source Files

controlplane.go data.go kubeconfig.go kubeletconfig.go preflight.go

Version
v1.31.0
Published
Aug 13, 2024
Platform
js/wasm
Imports
15 packages
Last checked
14 minutes ago

Tools for package owners.