cmd

package
v0.0.0-...-790edac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "upgrader",
	Short: "cluster upgrader",
	Long:  `A single tool to upgrade kubernetes cluster`,
	Run: func(cmd *cobra.Command, args []string) {
		if uo.KubernetesVersion == "" {
			glog.Exit("Please provide new kubernetes version.")
		}
		if err := RunUpgrade(uo); err != nil {
			glog.Exit(err.Error())
		}
	},
}

Functions

func Execute

func Execute()

func RunUpgrade

func RunUpgrade(uo *UpgradeOptions) error

Types

type UpgradeOptions

type UpgradeOptions struct {
	KubernetesVersion string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL