- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for GenerateUnmapDeviceFunc (0.42 sec)
-
pkg/volume/util/operationexecutor/fakegenerator.go
return f.recordFuncCall("GenerateUnmapVolumeFunc"), nil } func (f *fakeOGCounter) GenerateUnmapDeviceFunc(deviceToDetach AttachedVolume, actualStateOfWorld ActualStateOfWorldMounterUpdater, hu hostutil.HostUtils) (volumetypes.GeneratedOperations, error) { return f.recordFuncCall("GenerateUnmapDeviceFunc"), nil } func (f *fakeOGCounter) GetVolumePluginMgr() *volume.VolumePluginMgr { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 5.1K bytes - Viewed (0) -
pkg/volume/fc/fc.go
}, nil } func (plugin *fcPlugin) NewBlockVolumeMapper(spec *volume.Spec, pod *v1.Pod, _ volume.VolumeOptions) (volume.BlockVolumeMapper, error) { // If this called via GenerateUnmapDeviceFunc(), pod is nil. // Pass empty string as dummy uid since uid isn't used in the case. var uid types.UID if pod != nil { uid = pod.UID }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 17.4K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_executor_test.go
return volumetypes.NewOperationContext(nil, nil, false) } return volumetypes.GeneratedOperations{ OperationFunc: opFunc, }, nil } func (fopg *fakeOperationGenerator) GenerateUnmapDeviceFunc(deviceToDetach AttachedVolume, actualStateOfWorld ActualStateOfWorldMounterUpdater, hostutil hostutil.HostUtils) (volumetypes.GeneratedOperations, error) { opFunc := func() volumetypes.OperationContext {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 26.9K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_generator.go
// Generates the UnmapDevice function needed to perform the unmap of a device GenerateUnmapDeviceFunc(deviceToDetach AttachedVolume, actualStateOfWorld ActualStateOfWorldMounterUpdater, mounter hostutil.HostUtils) (volumetypes.GeneratedOperations, error) // GetVolumePluginMgr returns volume plugin manager
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 101.4K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi.go
func (plugin *iscsiPlugin) NewBlockVolumeMapper(spec *volume.Spec, pod *v1.Pod, _ volume.VolumeOptions) (volume.BlockVolumeMapper, error) { // If this is called via GenerateUnmapDeviceFunc(), pod is nil. // Pass empty string as dummy uid since uid isn't used in the case. var uid types.UID var secret map[string]string var err error if pod != nil { uid = pod.UID
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 23.4K bytes - Viewed (0) -
pkg/volume/csi/csi_block_test.go
t.Fatalf("unmapper failed to GetGlobalMapPath: %v", err) } err = csiUnmapper.UnmapPodDevice() if err != nil { t.Errorf("unmapper failed to call UnmapPodDevice: %v", err) } // GenerateUnmapDeviceFunc uses "" as pod UUID, it is global operation over all pods that used the volume unmapper, err = plug.NewBlockVolumeUnmapper(pv.ObjectMeta.Name, "") if err != nil { t.Fatalf("failed to make a new Unmapper: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 06:07:40 UTC 2023 - 26.5K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_executor.go
deviceToDetach, actualStateOfWorld, hostutil) } else { // Block volume case // Detach a device and remove loopback if a volume isn't referenced generatedOperations, err = oe.operationGenerator.GenerateUnmapDeviceFunc( deviceToDetach, actualStateOfWorld, hostutil) } if err != nil { return err } // Avoid executing unmount/unmap device from multiple pods referencing // the same volume in parallel
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 42.6K bytes - Viewed (0)