internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: BSD-2-Clause Imports: 14 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 {
	// contains filtered or unexported fields
}

Migrator can copy CRD instances from one API group to another.

func NewMigrator

func NewMigrator(options Options) *Migrator

NewMigrator constructs and returns a *Migrator from the provided options.

func (*Migrator) MigrateAllResources

func (m *Migrator) MigrateAllResources()

MigrateAllResources copies all instances of all resources within the old group/version to the new, applying any relevant mappings.

type Options

type Options struct {
	LogLevel               string
	Kubeconfig             string
	Context                string
	OldGroupVersion        string
	NewGroupVersion        string
	QPS                    float32
	Burst                  int
	NamespaceMappings      []string
	LabelMappings          []string
	AnnotationMappings     []string
	UpdateOwnerRefMappings []string
}

Options is the set of configurable parameters for a Migrator.

Jump to

Keyboard shortcuts

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