From 15e0c416019aea0c7fa9d2e59bb333f04847c4c7 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Thu, 14 Dec 2023 14:07:02 +0100 Subject: [PATCH] Fix CSI migration for vSphere volumes Restore `migratedPlugins` entry for in-tree vSphere volumes and mark them as migrated. Otherwise the CSI volume plugin ignores in-tree vSphere volumes and they will never get attached / mounted by CSI migration. The entry in `migratedPlugins` was incorrectly removed during CSIMigrationvSphere feature gate removal. --- pkg/volume/csi/csi_plugin.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/volume/csi/csi_plugin.go b/pkg/volume/csi/csi_plugin.go index 7176c826c15..8cfa3186d53 100644 --- a/pkg/volume/csi/csi_plugin.go +++ b/pkg/volume/csi/csi_plugin.go @@ -236,6 +236,9 @@ func (p *csiPlugin) Init(host volume.VolumeHost) error { csitranslationplugins.AzureFileInTreePluginName: func() bool { return utilfeature.DefaultFeatureGate.Enabled(features.CSIMigrationAzureFile) }, + csitranslationplugins.VSphereInTreePluginName: func() bool { + return true + }, csitranslationplugins.PortworxVolumePluginName: func() bool { return utilfeature.DefaultFeatureGate.Enabled(features.CSIMigrationPortworx) },