mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #112403 from akankshakumari393/check_mount_state
Call SetupDevice for Block Volume only if Volume is not globally Mounted
This commit is contained in:
		@@ -1114,7 +1114,7 @@ func (og *operationGenerator) GenerateMapVolumeFunc(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		// Call SetUpDevice if blockVolumeMapper implements CustomBlockVolumeMapper
 | 
							// Call SetUpDevice if blockVolumeMapper implements CustomBlockVolumeMapper
 | 
				
			||||||
		if customBlockVolumeMapper, ok := blockVolumeMapper.(volume.CustomBlockVolumeMapper); ok {
 | 
							if customBlockVolumeMapper, ok := blockVolumeMapper.(volume.CustomBlockVolumeMapper); ok && actualStateOfWorld.GetDeviceMountState(volumeToMount.VolumeName) != DeviceGloballyMounted {
 | 
				
			||||||
			var mapErr error
 | 
								var mapErr error
 | 
				
			||||||
			stagingPath, mapErr = customBlockVolumeMapper.SetUpDevice()
 | 
								stagingPath, mapErr = customBlockVolumeMapper.SetUpDevice()
 | 
				
			||||||
			if mapErr != nil {
 | 
								if mapErr != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user