- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getvolumename (0.27 sec)
-
pkg/volume/testing/testing.go
Plugin FakeVolumePlugin } func (f *FakeBasicVolumePlugin) GetPluginName() string { return f.Plugin.GetPluginName() } func (f *FakeBasicVolumePlugin) GetVolumeName(spec *volume.Spec) (string, error) { return f.Plugin.GetVolumeName(spec) } // CanSupport tests whether the plugin supports a given volume specification by // testing volume spec name begins with plugin name or not.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 53.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) -
pkg/apis/storage/validation/validation_test.go
t.Errorf("expected failure for test: %v", volumeAttachment) } } } func TestVolumeAttachmentUpdateValidation(t *testing.T) { volumeName := "foo" newVolumeName := "bar" old := storage.VolumeAttachment{ ObjectMeta: metav1.ObjectMeta{Name: "foo"}, Spec: storage.VolumeAttachmentSpec{ Attacher: "myattacher", Source: storage.VolumeAttachmentSource{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 69.7K bytes - Viewed (0)