migrator

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator struct {
	SourceNamespace string
	SourcePVCName   string

	DestNamespace       string
	DestPVCStorageClass string
	DestPVCSize         string
	DestPVCName         string

	Force bool
	// contains filtered or unexported fields
}

func New

func New(kubeconfigPath string) *Migrator

func (*Migrator) GetDestPVCSize

func (m *Migrator) GetDestPVCSize(fallback resource.Quantity) resource.Quantity

func (*Migrator) GetDestinationPVCTemplate

func (m *Migrator) GetDestinationPVCTemplate(sourcePVC *v1.PersistentVolumeClaim) *v1.PersistentVolumeClaim

func (*Migrator) Run

func (m *Migrator) Run()

func (*Migrator) Validate

func (m *Migrator) Validate() (*v1.PersistentVolumeClaim, []strategies.Strategy)

Jump to

Keyboard shortcuts

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