package upgrade
import "k8s.io/kubernetes/cmd/kubeadm/app/cmd/upgrade"
Index ¶
- func EnforceVersionPolicies(newK8sVersionStr string, newK8sVersion *version.Version, flags *applyFlags, versionGetter upgrade.VersionGetter) 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 NewCmdUpgradeNodeConfig() *cobra.Command
- func PerformControlPlaneUpgrade(flags *applyFlags, client clientset.Interface, waiter apiclient.Waiter, internalcfg *kubeadmapi.InitConfiguration) error
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 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 NewCmdUpgradeNodeConfig ¶
NewCmdUpgradeNodeConfig returns the cobra.Command for downloading the new/upgrading the kubelet configuration from the kubelet-config-1.X ConfigMap in the cluster TODO: to remove when 1.18 is released
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)
Source Files ¶
apply.go common.go diff.go node.go plan.go upgrade.go
- Version
- v1.17.14
- Published
- Nov 11, 2020
- Platform
- js/wasm
- Imports
- 39 packages
- Last checked
- 4 minutes ago –
Tools for package owners.