- Sort Score
- Result 10 results
- Languages All
Results 21 - 26 of 26 for GetVolumeName (0.27 sec)
-
pkg/volume/local/local.go
plugin.recorder = host.GetEventRecorder() return nil } func (plugin *localVolumePlugin) GetPluginName() string { return localVolumePluginName } func (plugin *localVolumePlugin) GetVolumeName(spec *volume.Spec) (string, error) { // This volume is only supported as a PersistentVolumeSource, so the PV name is unique return spec.Name(), nil } func (plugin *localVolumePlugin) CanSupport(spec *volume.Spec) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 22.2K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi.go
plugin.host = host plugin.targetLocks = keymutex.NewHashed(0) return nil } func (plugin *iscsiPlugin) GetPluginName() string { return iscsiPluginName } func (plugin *iscsiPlugin) GetVolumeName(spec *volume.Spec) (string, error) { tp, _, iqn, lun, err := getISCSITargetInfo(spec) if err != nil { return "", err } return fmt.Sprintf("%v:%v:%v", tp, iqn, lun), nil }
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_attacher.go
klog.Error(log("detacher.Detach missing value for parameter volumeName")) return errors.New("missing expected parameter volumeName") } // volumeName in format driverName<SEP>volumeHandle generated by plugin.GetVolumeName() parts := strings.Split(volumeName, volNameSep) if len(parts) != 2 { klog.Error(log("detacher.Detach insufficient info encoded in volumeName")) return errors.New("volumeName missing expected data") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 03 07:38:14 UTC 2023 - 25.9K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_generator.go
} volumeName, err = attachableVolumePlugin.GetVolumeName(volumeToDetach.VolumeSpec) if err != nil { return volumetypes.GeneratedOperations{}, volumeToDetach.GenerateErrorDetailed("DetachVolume.GetVolumeName failed", err) } } else { // Get attacher plugin and the volumeName by splitting the volume unique name in case
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/controller/volume/persistentvolume/framework_test.go
func (plugin *mockVolumePlugin) Init(host volume.VolumeHost) error { return nil } func (plugin *mockVolumePlugin) GetPluginName() string { return mockPluginName } func (plugin *mockVolumePlugin) GetVolumeName(spec *volume.Spec) (string, error) { return spec.Name(), nil } func (plugin *mockVolumePlugin) CanSupport(spec *volume.Spec) bool { return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 09:54:00 UTC 2023 - 38.3K bytes - Viewed (0) -
pkg/volume/csi/csi_attacher_test.go
_, err := csiAttacher.k8s.StorageV1().VolumeAttachments().Create(context.TODO(), attachment, metav1.CreateOptions{}) if err != nil { t.Fatalf("failed to attach: %v", err) } volumeName, err := plug.GetVolumeName(spec) if err != nil { t.Errorf("test case %s failed: %v", tc.name, err) } err = csiAttacher.Detach(volumeName, types.NodeName(nodeName)) if tc.shouldFail && err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 58.1K bytes - Viewed (0)