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

package upgrade

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

Index

Functions

func DryRunStaticPodUpgrade

func DryRunStaticPodUpgrade(internalcfg *kubeadmapi.MasterConfiguration) error

DryRunStaticPodUpgrade fakes an upgrade of the control plane

func EnforceVersionPolicies

func EnforceVersionPolicies(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 InteractivelyConfirmUpgrade

func InteractivelyConfirmUpgrade(question string) error

InteractivelyConfirmUpgrade asks the user whether they _really_ want to upgrade.

func NewCmdApply

func NewCmdApply(parentFlags *cmdUpgradeFlags) *cobra.Command

NewCmdApply returns the cobra command for `kubeadm upgrade apply`

func NewCmdPlan

func NewCmdPlan(parentFlags *cmdUpgradeFlags) *cobra.Command

NewCmdPlan returns the cobra command for `kubeadm upgrade plan`

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, internalcfg *kubeadmapi.MasterConfiguration) 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.MasterConfiguration, etcdUpgrade bool) error

PerformStaticPodUpgrade performs the upgrade of the control plane components for a static pod hosted cluster

func RunApply

func RunApply(flags *applyFlags) error

RunApply takes care of the actual upgrade functionality It does the following things: - Checks if the cluster is healthy - Gets the configuration from the kubeadm-config ConfigMap in the cluster - Enforces all version skew policies - Asks the user if they really want to upgrade - Makes sure the control plane images are available locally on the master(s) - Upgrades the control plane components - Applies the other resources that'd be created with kubeadm init as well, like

func RunPlan

func RunPlan(parentFlags *cmdUpgradeFlags) error

RunPlan takes care of outputting available versions to upgrade to for the user

func SetImplicitFlags

func SetImplicitFlags(flags *applyFlags) error

SetImplicitFlags handles dynamically defaulting flags based on each other's value

Source Files

apply.go common.go plan.go upgrade.go

Version
v1.10.8
Published
Sep 13, 2018
Platform
js/wasm
Imports
31 packages
Last checked
13 minutes ago

Tools for package owners.