mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
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.
This commit is contained in:
parent
d19420f3ec
commit
15e0c41601
@ -236,6 +236,9 @@ func (p *csiPlugin) Init(host volume.VolumeHost) error {
|
|||||||
csitranslationplugins.AzureFileInTreePluginName: func() bool {
|
csitranslationplugins.AzureFileInTreePluginName: func() bool {
|
||||||
return utilfeature.DefaultFeatureGate.Enabled(features.CSIMigrationAzureFile)
|
return utilfeature.DefaultFeatureGate.Enabled(features.CSIMigrationAzureFile)
|
||||||
},
|
},
|
||||||
|
csitranslationplugins.VSphereInTreePluginName: func() bool {
|
||||||
|
return true
|
||||||
|
},
|
||||||
csitranslationplugins.PortworxVolumePluginName: func() bool {
|
csitranslationplugins.PortworxVolumePluginName: func() bool {
|
||||||
return utilfeature.DefaultFeatureGate.Enabled(features.CSIMigrationPortworx)
|
return utilfeature.DefaultFeatureGate.Enabled(features.CSIMigrationPortworx)
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user