migrate

package
v0.0.0-...-69ef630 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"

IsDefaultStorageClassAnnotation - this is also exported by https://github.com/kubernetes/kubernetes/blob/v1.21.3/pkg/apis/storage/v1/util/helpers.go#L25 but that would require adding the k8s import overrides to our go.mod

Variables

This section is empty.

Functions

func Cli

func Cli()

Cli uses CLI options to run Migrate

func Migrate

func Migrate(ctx context.Context, w *log.Logger, clientset k8sclient.Interface, options Options) error

Migrate moves data and PVCs from one StorageClass to another

Types

type Options

type Options struct {
	SourceSCName         string
	DestSCName           string
	RsyncImage           string
	Namespace            string
	SetDefaults          bool
	VerboseCopy          bool
	SkipSourceValidation bool
}

Options is the set of options that should be provided to Migrate

Jump to

Keyboard shortcuts

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