migration

package
v0.3.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(opt *Options) error

RunCommand executes migration action

Types

type Options

type Options struct {
	Action                    string
	StoragePath               string
	ReleaseNamespace          string
	ControllerManagerName     string
	ApiserverName             string
	WebhookServiceName        string
	WebhookServicePort        string
	PersistentVolumeClaimName string
}

Options holds configuration for the migration job

func NewMigrationOptions

func NewMigrationOptions() *Options

NewMigrationOptions creates and returns a new Options

func (*Options) AddFlags

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

AddFlags adds flags for a CleanerOptions to the specified FlagSet.

func (*Options) Validate

func (c *Options) Validate() error

Validate checks flag has been set and has a proper value

Jump to

Keyboard shortcuts

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