package upgrade
import "k8s.io/kubernetes/cmd/kubeadm/app/cmd/upgrade"
Index ¶
- func DryRunStaticPodUpgrade(internalcfg *kubeadmapi.InitConfiguration) error
- func EnforceVersionPolicies(newK8sVersionStr string, newK8sVersion *version.Version, flags *applyFlags, versionGetter upgrade.VersionGetter) error
- func GetPathManagerForUpgrade(internalcfg *kubeadmapi.InitConfiguration, etcdUpgrade bool) (upgrade.StaticPodPathManager, error)
- func InteractivelyConfirmUpgrade(question string) error
- func NewCmdApply(apf *applyPlanFlags) *cobra.Command
- func NewCmdDiff(out io.Writer) *cobra.Command
- func NewCmdNode() *cobra.Command
- func NewCmdPlan(apf *applyPlanFlags) *cobra.Command
- func NewCmdUpgrade(out io.Writer) *cobra.Command
- func NewCmdUpgradeControlPlane() *cobra.Command
- func NewCmdUpgradeNodeConfig() *cobra.Command
- func PerformControlPlaneUpgrade(flags *applyFlags, client clientset.Interface, waiter apiclient.Waiter, internalcfg *kubeadmapi.InitConfiguration) error
- func PerformStaticPodUpgrade(client clientset.Interface, waiter apiclient.Waiter, internalcfg *kubeadmapi.InitConfiguration, etcdUpgrade bool) error
- func RunUpgradeControlPlane(flags *controlplaneUpgradeFlags) error
- func RunUpgradeNodeConfig(flags *nodeUpgradeFlags) error
Functions ¶
func DryRunStaticPodUpgrade ¶
func DryRunStaticPodUpgrade(internalcfg *kubeadmapi.InitConfiguration) error
DryRunStaticPodUpgrade fakes an upgrade of the control plane
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 GetPathManagerForUpgrade ¶
func GetPathManagerForUpgrade(internalcfg *kubeadmapi.InitConfiguration, etcdUpgrade bool) (upgrade.StaticPodPathManager, error)
GetPathManagerForUpgrade returns a path manager properly configured for the given InitConfiguration.
func InteractivelyConfirmUpgrade ¶
InteractivelyConfirmUpgrade asks the user whether they _really_ want to upgrade.
func NewCmdApply ¶
NewCmdApply returns the cobra command for `kubeadm upgrade apply`
func NewCmdDiff ¶
NewCmdDiff returns the cobra command for `kubeadm upgrade diff`
func NewCmdNode ¶
NewCmdNode returns the cobra command for `kubeadm upgrade node`
func NewCmdPlan ¶
NewCmdPlan returns the cobra command for `kubeadm upgrade plan`
func NewCmdUpgrade ¶
NewCmdUpgrade returns the cobra command for `kubeadm upgrade`
func NewCmdUpgradeControlPlane ¶
NewCmdUpgradeControlPlane returns the cobra.Command for upgrading the controlplane instance on this node
func NewCmdUpgradeNodeConfig ¶
NewCmdUpgradeNodeConfig returns the cobra.Command for downloading the new/upgrading the kubelet configuration from the kubelet-config-1.X ConfigMap in the cluster
func PerformControlPlaneUpgrade ¶
func PerformControlPlaneUpgrade(flags *applyFlags, client clientset.Interface, waiter apiclient.Waiter, internalcfg *kubeadmapi.InitConfiguration) error
PerformControlPlaneUpgrade actually performs the upgrade procedure for the cluster of your type (self-hosted or static-pod-hosted)
func PerformStaticPodUpgrade ¶
func PerformStaticPodUpgrade(client clientset.Interface, waiter apiclient.Waiter, internalcfg *kubeadmapi.InitConfiguration, etcdUpgrade bool) error
PerformStaticPodUpgrade performs the upgrade of the control plane components for a static pod hosted cluster
func RunUpgradeControlPlane ¶
func RunUpgradeControlPlane(flags *controlplaneUpgradeFlags) error
RunUpgradeControlPlane is executed when `kubeadm upgrade node controlplane` runs.
func RunUpgradeNodeConfig ¶
func RunUpgradeNodeConfig(flags *nodeUpgradeFlags) error
RunUpgradeNodeConfig is executed when `kubeadm upgrade node config` runs.
Source Files ¶
apply.go common.go diff.go node.go plan.go upgrade.go
- Version
- v1.14.4
- Published
- Jul 4, 2019
- Platform
- js/wasm
- Imports
- 41 packages
- Last checked
- 3 minutes ago –
Tools for package owners.