Documentation ¶
Index ¶
- Constants
- func GetMigSaToken(sourceClient *kubernetes.Clientset) []byte
- func NewDeploymentFor41583() *appsv1.Deployment
- func NewMigCluster(saToken []byte) (*migapi.MigCluster, *v1.Secret)
- func NewMigMigration(name string, planRef string, quiesce bool, stage bool) *migapi.MigMigration
- func NewMigPlan(namespaces []string, name string) *migapi.MigPlan
- func NewMigStorage() (*migapi.MigStorage, *v1.Secret)
- func NewMigrationController(installUi bool, installController bool) *unstructured.Unstructured
- func NewMigrationNS(ns string) *v1.Namespace
- func NewPVC(name string, namespace string) *v1.PersistentVolumeClaim
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 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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.