app

package
v0.0.0-...-04f7a76 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKubeFlags

func AddKubeFlags(cmd *cobra.Command, fs *pflag.FlagSet) cmdutil.Factory

func NewRunCmd

func NewRunCmd(ctx context.Context) *cobra.Command

Types

type NewFunc

type NewFunc func(context.Context, *config.Config) pkg.Step

type Options

type Options struct {
	NoDryRun   bool
	LogLevel   string
	ConfigPath string

	StepAll bool

	//0
	StepPreflight bool

	// 1
	StepPrepare bool

	// 2
	StepRollNodes    []string
	StepRollAllNodes bool

	// 3
	StepChangeCNIPriority    []string
	StepChangeCNIAllPriority bool

	// 4
	StepMigrateNodes    []string
	StepMigrateAllNodes bool

	// 5
	StepCleanUp bool
}

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) Validate

func (o *Options) Validate() error

type ReadyFunc

type ReadyFunc func() (bool, error)

type RunFunc

type RunFunc func(bool) error

Jump to

Keyboard shortcuts

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