migrate

package
v0.28.7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIGRATION_STATUS_OBJECTSTORE = "running object storage migration"
	MIGRATION_STATUS_PVCMIGRATE  = "running pvc migration"
	MIGRATION_STATUS_FAILED      = "failed"
	MIGRATION_STATUS_COMPLETED   = "completed"
	MIGRATION_STATUS_NOT_STARTED = "not started"
	MIGRATION_STATUS_NOT_READY   = "not ready"
)
View Source
const DISTRIBUTED_STORAGE_CLASS_NAME = "distributed"

Variables

This section is empty.

Functions

func GetMigrationLogs

func GetMigrationLogs() string

func GetMigrationStatus

func GetMigrationStatus(ctx context.Context, controllers types.ControllerConfig) (string, error)

func ObjectStorageAndPVCs

func ObjectStorageAndPVCs(config ekcoops.Config, controllers types.ControllerConfig)

ObjectStorageAndPVCs migrates the object storage from MinIO to Rook, and migrates PVCs from 'scaling' to the Rook storageclass

Types

type ClusterReadyResult added in v0.27.2

type ClusterReadyResult struct {
	MigrationReadyResult
	NrNodes         int `json:"nrNodes"`
	RequiredNrNodes int `json:"requiredNrNodes"`
}

ClusterReadyResult represents the status of the cluster readiness check, namely whether the total number of nodes in the cluster exceed or meet the minimum required number of nodes for the migration to start.

func IsClusterReady added in v0.27.2

func IsClusterReady(ctx context.Context, config ekcoops.Config, controllers types.ControllerConfig) (*ClusterReadyResult, error)

type MigrationReadyResult added in v0.27.2

type MigrationReadyResult struct {
	Ready  bool   `json:"ready"`
	Reason string `json:"reason"`
}

MigrationReadyResult represents the status of the migration readiness check, includes a reason, the total number of nodes in the cluster and the required number of nodes needed to start the migration.

func IsMigrationReady

func IsMigrationReady(ctx context.Context, config ekcoops.Config, controllers types.ControllerConfig) (*MigrationReadyResult, error)

IsMigrationReady returns if the cluster is ready to migrate storage. This is true if Ceph is setup/healthy, the ceph storageclass is present in the cluster, and the ceph object store user exists. This function also returns the current of number of nodes in the cluster.

Jump to

Keyboard shortcuts

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