Documentation ¶
Index ¶
Constants ¶
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" )
const DISTRIBUTED_STORAGE_CLASS_NAME = "distributed"
Variables ¶
This section is empty.
Functions ¶
func GetMigrationLogs ¶
func GetMigrationLogs() string
func GetMigrationStatus ¶
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
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.