- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for NewSpecFromPersistentVolume (0.28 sec)
-
pkg/volume/csi/csi_attacher_test.go
attachedSpecs: []attachedSpec{ {"vol0", volume.NewSpecFromPersistentVolume(makeTestPV("pv0", 10, testDriver, "vol0"), false), true}, {"vol1", volume.NewSpecFromPersistentVolume(makeTestPV("pv1", 20, testDriver, "vol1"), false), true}, {"vol2", volume.NewSpecFromPersistentVolume(makeTestPV("pv2", 10, testDriver, "vol2"), false), false}, {"vol3", volume.NewSpecFromPersistentVolume(makeTestPV("pv3", 10, testDriver, "vol3"), false), false},
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/volume/csi/csi_plugin_test.go
driverName: "testdr", volName: "testvol", spec: volume.NewSpecFromPersistentVolume(makeTestPV("test-pv", 10, "testdr", "testvol"), false), }, { name: "mixchar driver", driverName: "test.dr.cc", volName: "testvol", spec: volume.NewSpecFromPersistentVolume(makeTestPV("test-pv", 10, "test.dr.cc", "testvol"), false), }, { name: "mixchar volume",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.8K bytes - Viewed (0) -
pkg/volume/csi/csi_mounter_test.go
return volume.NewSpecFromPersistentVolume(pvSrc, false) }, }, { name: "setup with persistent source without unspecified fstype and options", podUID: types.UID(fmt.Sprintf("%08X", rand.Uint64())), mode: storage.VolumeLifecyclePersistent, spec: func(fsType string, options []string) *volume.Spec { return volume.NewSpecFromPersistentVolume(makeTestPV("pv1", 20, testDriver, "vol2"), false)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 50.1K bytes - Viewed (0) -
pkg/volume/csi/expander_test.go
}, }, }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { plug, tmpDir := newTestPlugin(t, nil) defer os.RemoveAll(tmpDir) spec := volume.NewSpecFromPersistentVolume(makeTestPV("test-pv", 10, "expandable", "test-vol"), false) if tc.enableCSINodeExpandSecret { spec.PersistentVolume.Spec.CSI.NodeExpandSecretRef = &api.SecretReference{ Name: tc.secret.Name,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 03:58:36 UTC 2023 - 6.6K bytes - Viewed (0) -
pkg/volume/fc/fc_test.go
FC: &v1.FCVolumeSource{ TargetWWNs: []string{"500a0981891b8dc5"}, FSType: "ext4", Lun: &lun, }, }, VolumeMode: &fs, }, } doTestPlugin(t, volume.NewSpecFromPersistentVolume(vol, false)) } func TestPluginVolumeWWIDs(t *testing.T) { vol := &v1.Volume{ Name: "vol1", VolumeSource: v1.VolumeSource{ FC: &v1.FCVolumeSource{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 14.1K bytes - Viewed (0) -
pkg/volume/nfs/nfs_test.go
PersistentVolumeSource: v1.PersistentVolumeSource{ NFS: &v1.NFSVolumeSource{Server: "localhost", Path: "/somepath", ReadOnly: false}, }, }, } doTestPlugin(t, volume.NewSpecFromPersistentVolume(vol, false), "localhost:/somepath") } func TestPersistentClaimReadOnlyFlag(t *testing.T) { tmpDir, err := utiltesting.MkTmpdir("nfs_test") if err != nil { t.Fatalf("error creating temp dir: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 9K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/node_expander_test.go
og := getTestOperationGenerator(volumePluginMgr, pvc, pv) vmt := VolumeToMount{ Pod: pod, VolumeName: v1.UniqueVolumeName(pv.Name), VolumeSpec: volume.NewSpecFromPersistentVolume(pv, false), } desiredSize := test.desiredSize if desiredSize == nil { desiredSize = pv.Spec.Capacity.Storage() } actualSize := test.actualSize if actualSize == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 5.7K bytes - Viewed (0) -
pkg/volume/plugins_test.go
Spec: v1.PersistentVolumeSpec{ PersistentVolumeSource: v1.PersistentVolumeSource{AWSElasticBlockStore: &v1.AWSElasticBlockStoreVolumeSource{}}, }, } converted = NewSpecFromPersistentVolume(pv, false) if converted.PersistentVolume.Spec.AWSElasticBlockStore == nil { t.Errorf("Unexpected nil AWSElasticBlockStore: %#v", converted) } if pv.Name != converted.Name() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/volume/csi/csi_test.go
}{ { name: "PersistentVolume", specName: "pv2", driver: "simple-driver", volName: "vol2", specFunc: func(specName, driver, volName string) *volume.Spec { return volume.NewSpecFromPersistentVolume(makeTestPV(specName, 20, driver, volName), false) }, podFunc: func() *api.Pod { podUID := types.UID(fmt.Sprintf("%08X", rand.Uint64()))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 15:55:13 UTC 2022 - 21.1K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_test.go
TargetPortal: "127.0.0.1:3260", IQN: "iqn.2014-12.server:storage.target01", FSType: "ext4", Lun: 0, }, }, }, } doTestPlugin(t, volume.NewSpecFromPersistentVolume(vol, false)) } func TestPersistentClaimReadOnlyFlag(t *testing.T) { tmpDir, err := utiltesting.MkTmpdir("iscsi_test") if err != nil { t.Fatalf("error creating temp dir: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 16.4K bytes - Viewed (0)