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 migrate

Removal 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 legacy DirectCSI 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.