Documentation ¶
Index ¶
- func DryRunStaticPodUpgrade(internalcfg *kubeadmapi.MasterConfiguration) error
- func EnforceVersionPolicies(flags *applyFlags, versionGetter upgrade.VersionGetter) error
- func GetPathManagerForUpgrade(internalcfg *kubeadmapi.MasterConfiguration, 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 NewCmdUpgradeNodeConfig() *cobra.Command
- func PerformControlPlaneUpgrade(flags *applyFlags, client clientset.Interface, waiter apiclient.Waiter, ...) error
- func PerformStaticPodUpgrade(client clientset.Interface, waiter apiclient.Waiter, ...) error
- func RunApply(flags *applyFlags) error
- func RunPlan(flags *planFlags) error
- func RunUpgradeNodeConfig(flags *nodeUpgradeFlags) error
- func SetImplicitFlags(flags *applyFlags) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 GetPathManagerForUpgrade ¶ added in v1.11.0
func GetPathManagerForUpgrade(internalcfg *kubeadmapi.MasterConfiguration, etcdUpgrade bool) (upgrade.StaticPodPathManager, error)
GetPathManagerForUpgrade returns a path manager properly configured for the given MasterConfiguration.
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 ¶ added in v1.11.0
NewCmdDiff returns the cobra command for `kubeadm upgrade diff`
func NewCmdNode ¶ added in v1.11.0
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 ¶ added in v1.11.0
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.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
- Creating the RBAC rules for the bootstrap tokens and the cluster-info ConfigMap
- Applying new kube-dns and kube-proxy manifests
- Uploads the newly used configuration to the cluster ConfigMap
func RunPlan ¶
func RunPlan(flags *planFlags) error
RunPlan takes care of outputting available versions to upgrade to for the user
func RunUpgradeNodeConfig ¶ added in v1.11.0
func RunUpgradeNodeConfig(flags *nodeUpgradeFlags) error
RunUpgradeNodeConfig is executed when `kubeadm upgrade node config` runs.
func SetImplicitFlags ¶
func SetImplicitFlags(flags *applyFlags) error
SetImplicitFlags handles dynamically defaulting flags based on each other's value
Types ¶
This section is empty.