@@ -336,20 +336,20 @@ func main() {
336336 // with the CRDs that should be migrated by this provider.
337337 crdMigratorConfig := map [client.Object ]crdmigrator.ByObjectConfig {}
338338 if isGovmomiCRDLoaded {
339- crdMigratorConfig [& infrav1.VSphereCluster {}] = crdmigrator.ByObjectConfig {UseCache : true }
339+ crdMigratorConfig [& infrav1.VSphereCluster {}] = crdmigrator.ByObjectConfig {UseCache : true , UseStatusForStorageVersionMigration : true }
340340 crdMigratorConfig [& infrav1.VSphereClusterTemplate {}] = crdmigrator.ByObjectConfig {UseCache : false }
341- crdMigratorConfig [& infrav1.VSphereMachine {}] = crdmigrator.ByObjectConfig {UseCache : true }
341+ crdMigratorConfig [& infrav1.VSphereMachine {}] = crdmigrator.ByObjectConfig {UseCache : true , UseStatusForStorageVersionMigration : true }
342342 crdMigratorConfig [& infrav1.VSphereMachineTemplate {}] = crdmigrator.ByObjectConfig {UseCache : true }
343- crdMigratorConfig [& infrav1.VSphereVM {}] = crdmigrator.ByObjectConfig {UseCache : true }
344- crdMigratorConfig [& infrav1.VSphereClusterIdentity {}] = crdmigrator.ByObjectConfig {UseCache : true }
345- crdMigratorConfig [& infrav1.VSphereDeploymentZone {}] = crdmigrator.ByObjectConfig {UseCache : true }
343+ crdMigratorConfig [& infrav1.VSphereVM {}] = crdmigrator.ByObjectConfig {UseCache : true , UseStatusForStorageVersionMigration : true }
344+ crdMigratorConfig [& infrav1.VSphereClusterIdentity {}] = crdmigrator.ByObjectConfig {UseCache : true , UseStatusForStorageVersionMigration : true }
345+ crdMigratorConfig [& infrav1.VSphereDeploymentZone {}] = crdmigrator.ByObjectConfig {UseCache : true , UseStatusForStorageVersionMigration : true }
346346 crdMigratorConfig [& infrav1.VSphereFailureDomain {}] = crdmigrator.ByObjectConfig {UseCache : true }
347347 }
348348 if isSupervisorCRDLoaded {
349- crdMigratorConfig [& vmwarev1.VSphereCluster {}] = crdmigrator.ByObjectConfig {UseCache : true }
349+ crdMigratorConfig [& vmwarev1.VSphereCluster {}] = crdmigrator.ByObjectConfig {UseCache : true , UseStatusForStorageVersionMigration : true }
350350 crdMigratorConfig [& vmwarev1.VSphereClusterTemplate {}] = crdmigrator.ByObjectConfig {UseCache : false }
351- crdMigratorConfig [& vmwarev1.VSphereMachine {}] = crdmigrator.ByObjectConfig {UseCache : true }
352- crdMigratorConfig [& vmwarev1.VSphereMachineTemplate {}] = crdmigrator.ByObjectConfig {UseCache : true }
351+ crdMigratorConfig [& vmwarev1.VSphereMachine {}] = crdmigrator.ByObjectConfig {UseCache : true , UseStatusForStorageVersionMigration : true }
352+ crdMigratorConfig [& vmwarev1.VSphereMachineTemplate {}] = crdmigrator.ByObjectConfig {UseCache : true , UseStatusForStorageVersionMigration : true }
353353 crdMigratorConfig [& vmwarev1.ProviderServiceAccount {}] = crdmigrator.ByObjectConfig {UseCache : true }
354354 }
355355
0 commit comments