tests

package
v0.0.0-...-25f5b1c Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	E2ETestObjectName  = "e2e-object"
	MigrationNamespace = migapi.OpenshiftMigrationNamespace
	TestSecretType     = "Opaque"
)

common constants

View Source
const (
	TestDestinationCluster = "host"
	TestClusterSecret      = "e2eclustersecret"
)

cluster constants

View Source
const (
	TestStorageSecret = "e2estoragesecret"
	ConfigNamespace   = "openshift-config"
)

storage constants

View Source
const (
	EXPOSEDREGISTRYPATH       = "EXPOSEDREGISTRYPATH"
	SOURCEURL                 = "SOURCEURL"
	SOURCECONFIG              = "SOURCECONFIG"
	HOSTCONFIG                = "KUBECONFIG"
	VELERO_PLUGIN_FQIN        = "VELERO_PLUGIN_FQIN"
	MIG_CONTROLLER_IMAGE_FQIN = "MIG_CONTROLLER_IMAGE_FQIN"
	RSYNC_TRANSFER_IMAGE_FQIN = "RSYNC_TRANSFER_IMAGE_FQIN"
	MIG_NAMESPACE_LIMIT       = "MIG_NAMESPACE_LIMIT"
	MIG_POD_LIMIT             = "MIG_POD_LIMIT"
	CLUSTER_NAME              = "CLUSTER_NAME"
	RESTIC_TIMEOUT            = "RESTIC_TIMEOUT"
	MIGRATION_VELERO          = "MIGRATION_VELERO"
	MIG_PV_LIMIT              = "MIG_PV_LIMIT"
	VERSION                   = "VERSION"
	AWSBUCKETNAME             = "AWSBUCKETNAME"
	AWSSECRETKEY              = "AWSSECRETKEY"
	AWSACCESSKEY              = "AWSACCESSKEY"
	BACKUPSTORAGEPROVIDER     = "BACKUPSTORAGEPROVIDER"
	AWSREGION                 = "AWSREGION"
)

environment variables

View Source
const (
	MigrationController = "migration-controller"
)

migrationcontroller constants

Variables

This section is empty.

Functions

func GetMigSaToken

func GetMigSaToken(sourceClient *kubernetes.Clientset) []byte

func NewDeploymentFor41583

func NewDeploymentFor41583() *appsv1.Deployment

func NewMigCluster

func NewMigCluster(saToken []byte) (*migapi.MigCluster, *v1.Secret)

func NewMigMigration

func NewMigMigration(name string, planRef string, quiesce bool, stage bool) *migapi.MigMigration

func NewMigPlan

func NewMigPlan(namespaces []string, name string) *migapi.MigPlan

func NewMigStorage

func NewMigStorage() (*migapi.MigStorage, *v1.Secret)

func NewMigrationController

func NewMigrationController(installUi bool, installController bool) *unstructured.Unstructured

We are assuming that the controller CR is created and controller is running

func NewMigrationNS

func NewMigrationNS(ns string) *v1.Namespace

func NewPVC

func NewPVC(name string, namespace string) *v1.PersistentVolumeClaim

Types

This section is empty.

Jump to

Keyboard shortcuts

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