kubectl directpv migrate (Removed)
Command removed
The migrate command was removed in DirectPV 5.1.0 (December 2024).
Legacy DirectCSI migration is no longer supported.
The kubectl directpv migrate command migrated drives and volumes from legacy DirectCSI to DirectPV.
Syntax
kubectl directpv migrate [--dry-run]Parameters
--dry-run
Optional
Display what would be migrated without making changes.
Global flags
| Flag | Description |
|---|---|
--kubeconfig | Path to the kubeconfig file to use for CLI requests. |
--quiet | Suppress printing error messages. |
Example
Migrate drives and volumes from legacy DirectCSI:
kubectl directpv migrateRemoval context
This command was removed as part of the transition to Kustomize-based installation in DirectPV 5.1.0. The removal also dropped support for DirectPV v4.0 and for migrating legacy DirectCSI drives and volumes. DirectPV still serves existing volumes that were already migrated from DirectCSI, through its legacy mode. It does not create new legacy volumes.
If you have existing DirectCSI installations that need migration, use an earlier version of DirectPV (5.0.x or earlier) to perform the migration before upgrading.