migrate

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceBindings = "servicebindings"
View Source
const ServiceInstances = "serviceinstances"

Variables

This section is empty.

Functions

func GetK8sClient

func GetK8sClient(config *rest.Config, groupName, groupVersion string) *rest.RESTClient

func GetSMClient

func GetSMClient(ctx context.Context, secret *v1.Secret) sm.Client

Types

type ExecutionMode

type ExecutionMode int
const (
	Run ExecutionMode = iota
	RunWithoutValidation
	DryRun
)

type Migrator

type Migrator struct {
	SMClient              sm.Client
	SvcatRestClient       *rest.RESTClient
	SapOperatorRestClient *rest.RESTClient
	ClientSet             *kubernetes.Clientset
	ClusterID             string
	Services              map[string]types.ServiceOffering
	Plans                 map[string]types.ServicePlan
}

func NewMigrator

func NewMigrator(ctx context.Context, kubeconfig string, managedNamespace string) *Migrator

func (*Migrator) Migrate

func (m *Migrator) Migrate(ctx context.Context, executionMode ExecutionMode)

Jump to

Keyboard shortcuts

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