- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 28 for NewSpecFromPersistentVolume (0.58 sec)
-
pkg/volume/csi/csi_client_test.go
DeviceMountPath string } func TestVolumeHealthEnable(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.CSIVolumeHealth, true) spec := volume.NewSpecFromPersistentVolume(makeTestPV("test-pv", 10, "metrics", "test-vol"), false) tests := []struct { name string volumeStatsSet bool volumeConditionSet bool volumeData VolumeStatsOptions
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 33.9K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/metrics/metrics.go
collector.pvCollect(ch) collector.pvcCollect(ch) } func (collector *pvAndPVCCountCollector) getPVPluginName(pv *v1.PersistentVolume) string { spec := volume.NewSpecFromPersistentVolume(pv, true) fullPluginName := pluginNameNotAvailable if plugin, err := collector.pluginMgr.FindPluginBySpec(spec); err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 25 13:09:16 UTC 2022 - 10.5K bytes - Viewed (0) -
pkg/volume/local/local.go
Local: &v1.LocalVolumeSource{ Path: path, }, }, VolumeMode: &fs, }, } return volume.ReconstructedVolume{ Spec: volume.NewSpecFromPersistentVolume(localVolume, false), }, nil } func (plugin *localVolumePlugin) ConstructBlockVolumeSpec(podUID types.UID, volumeName, mapPath string) (*volume.Spec, error) { block := v1.PersistentVolumeBlock
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/util/operationexecutor/operation_generator_test.go
og := getTestOperatorGeneratorWithPVPVC(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 - 16.2K bytes - Viewed (0) -
pkg/volume/csi/csi_plugin.go
CSI: &api.CSIPersistentVolumeSource{ Driver: driverName, VolumeHandle: volumeHandle, }, }, VolumeMode: &fsMode, }, } return volume.NewSpecFromPersistentVolume(pv, false) } func (p *csiPlugin) SupportsMountOption() bool { // TODO (vladimirvivien) use CSI VolumeCapability.MountVolume.mount_flags // to probe for the result for this method
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 29.2K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/util/util.go
expectedClaimUID) } // Do not return the object from the informer, since the store is shared it // may be mutated by another consumer. clonedPV := pv.DeepCopy() return volume.NewSpecFromPersistentVolume(clonedPV, pvcReadOnly), nil } // DetermineVolumeAction returns true if volume and pod needs to be added to dswp // and it returns false if volume and pod needs to be removed from dswp
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 10:42:15 UTC 2024 - 12K bytes - Viewed (0) -
pkg/controller/volume/expand/expand_controller.go
// 2. pv has an pre-resize capacity annotation if pvcRequestSize.Cmp(pvcStatusSize) <= 0 && !metav1.HasAnnotation(pv.ObjectMeta, util.AnnPreResizeCapacity) { return nil } volumeSpec := volume.NewSpecFromPersistentVolume(pv, false) migratable, err := expc.csiMigratedPluginManager.IsMigratable(volumeSpec) if err != nil { logger.V(4).Info("Failed to check CSI migration status for PVC with error", "pvcKey", key, "err", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 16.2K bytes - Viewed (0) -
pkg/volume/plugins.go
} // NewSpecFromVolume creates an Spec from an v1.Volume func NewSpecFromVolume(vs *v1.Volume) *Spec { return &Spec{ Volume: vs, } } // NewSpecFromPersistentVolume creates an Spec from an v1.PersistentVolume func NewSpecFromPersistentVolume(pv *v1.PersistentVolume, readOnly bool) *Spec { return &Spec{ PersistentVolume: pv, ReadOnly: readOnly, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 16:13:15 UTC 2024 - 38.2K bytes - Viewed (0) -
pkg/volume/fc/fc.go
fcPV.Spec.PersistentVolumeSource.FC.TargetWWNs, *fcPV.Spec.PersistentVolumeSource.FC.Lun, fcPV.Spec.PersistentVolumeSource.FC.WWIDs) return volume.NewSpecFromPersistentVolume(fcPV, false), nil } type fcDisk struct { volName string podUID types.UID wwns []string lun string wwids []string plugin *fcPlugin
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/local/local_test.go
if isBlock { blockMode := v1.PersistentVolumeBlock pv.Spec.VolumeMode = &blockMode } else { fsMode := v1.PersistentVolumeFilesystem pv.Spec.VolumeMode = &fsMode } return volume.NewSpecFromPersistentVolume(pv, readOnly) } func TestCanSupport(t *testing.T) { tmpDir, plug := getPlugin(t) defer os.RemoveAll(tmpDir) if !plug.CanSupport(getTestVolume(false, tmpDir, false, nil)) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 10:53:39 UTC 2023 - 22.5K bytes - Viewed (0)