kubernetesk8s.io/kubernetes/cmd/kubeadm/app/cmd/upgrade Index | Files

package upgrade

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

Index

Functions

func EnforceVersionPolicies

func EnforceVersionPolicies(newK8sVersionStr string, newK8sVersion *version.Version, flags *applyFlags, versionGetter upgrade.VersionGetter) error

EnforceVersionPolicies makes sure that the version the user specified is valid to upgrade to There are both fatal and skippable (with --force) errors

func NewCmdUpgrade

func NewCmdUpgrade(out io.Writer) *cobra.Command

NewCmdUpgrade returns the cobra command for `kubeadm upgrade`

func PerformControlPlaneUpgrade

func PerformControlPlaneUpgrade(flags *applyFlags, client clientset.Interface, waiter apiclient.Waiter, initCfg *kubeadmapi.InitConfiguration, upgradeCfg *kubeadmapi.UpgradeConfiguration) error

PerformControlPlaneUpgrade actually performs the upgrade procedure for the cluster of your type (self-hosted or static-pod-hosted)

Types

type FetchInitConfigurationFunc

type FetchInitConfigurationFunc func(client clientset.Interface, printer output.Printer, logPrefix string, newControlPlane, skipComponentConfigs bool) (*kubeadmapi.InitConfiguration, error)

FetchInitConfigurationFunc defines the signature of the function which will fetch InitConfiguration from cluster.

Source Files

apply.go common.go diff.go node.go plan.go upgrade.go

Version
v1.31.6
Published
Feb 12, 2025
Platform
js/wasm
Imports
47 packages
Last checked
1 hour ago

Tools for package owners.