Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 208 for volumeModes (0.16 sec)

  1. pkg/controller/volume/persistentvolume/binder_test.go

    	modeFile := v1.PersistentVolumeFilesystem
    
    	// Tests assume defaulting, so feature enabled will never have nil volumeMode
    	tests := []controllerTest{
    		// PVC with VolumeMode
    		{
    			// syncVolume binds a requested block claim to a block volume
    			name:            "14-1 - binding to volumeMode block",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 65.8K bytes
    - Viewed (0)
  2. pkg/apis/core/fuzzer/fuzzer.go

    			}
    		},
    		func(i *core.PersistentVolumeClaimSpec, c fuzz.Continue) {
    			// Match defaulting in pkg/apis/core/v1/defaults.go.
    			volumeMode := core.PersistentVolumeMode(c.RandString())
    			if volumeMode == "" {
    				volumeMode = core.PersistentVolumeFilesystem
    			}
    			i.VolumeMode = &volumeMode
    		},
    		func(d *core.DNSPolicy, c fuzz.Continue) {
    			policies := []core.DNSPolicy{core.DNSClusterFirst, core.DNSDefault}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/index_test.go

    }
    
    func TestVolumeModeCheck(t *testing.T) {
    
    	blockMode := v1.PersistentVolumeBlock
    	filesystemMode := v1.PersistentVolumeFilesystem
    
    	// If feature gate is enabled, VolumeMode will always be defaulted
    	// If feature gate is disabled, VolumeMode is dropped by API and ignored
    	scenarios := map[string]struct {
    		isExpectedMismatch bool
    		vol                *v1.PersistentVolume
    		pvc                *v1.PersistentVolumeClaim
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 44K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    	volumePath     string
    	pluginName     string
    	volumeMode     v1.PersistentVolumeMode
    }
    
    func (p podVolume) MarshalLog() interface{} {
    	return struct {
    		PodName        string `json:"podName"`
    		VolumeSpecName string `json:"volumeSpecName"`
    		VolumePath     string `json:"volumePath"`
    		PluginName     string `json:"pluginName"`
    		VolumeMode     string `json:"volumeMode"`
    	}{
    		PodName:        string(p.podName),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    		})
    	}
    }
    
    func getPodPVCAndPV(volumeMode v1.PersistentVolumeMode, podName, pvName, pvcName string) (*v1.Pod, *v1.PersistentVolume, *v1.PersistentVolumeClaim) {
    	pv := &v1.PersistentVolume{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: pvName,
    			UID:  "pvuid",
    		},
    		Spec: v1.PersistentVolumeSpec{
    			ClaimRef:   &v1.ObjectReference{Name: pvcName},
    			VolumeMode: &volumeMode,
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    		if tc.volumeType == "ephemeral" {
    			pod, pv, pvc = createEphemeralVolumeObjects("dswp-test-pod", "dswp-test-volume-name", true, &tc.volumeMode)
    		} else {
    			pv, pvc = createResizeRelatedVolumes(&tc.volumeMode)
    			containers := []v1.Container{}
    
    			if tc.volumeMode == v1.PersistentVolumeFilesystem {
    				containers = append(containers, v1.Container{
    					VolumeMounts: []v1.VolumeMount{
    						{
    							Name:      pv.Name,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/metrics/metrics.go

    			StabilityLevel: metrics.ALPHA,
    		})
    )
    
    // volumeCount counts by PluginName and VolumeMode.
    type volumeCount map[string]map[string]int
    
    func (v volumeCount) add(pluginName string, volumeMode string) {
    	count, ok := v[pluginName]
    	if !ok {
    		count = map[string]int{}
    	}
    	count[volumeMode]++
    	v[pluginName] = count
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 25 13:09:16 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/client-go/applyconfigurations/core/v1/persistentvolumeclaimspec.go

    	StorageClassName          *string                                       `json:"storageClassName,omitempty"`
    	VolumeMode                *v1.PersistentVolumeMode                      `json:"volumeMode,omitempty"`
    	DataSource                *TypedLocalObjectReferenceApplyConfiguration  `json:"dataSource,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. pkg/volume/util/operationexecutor/operation_executor_test.go

    	volumesToMount := make([]VolumeToMount, numVolumesToMap)
    	secretName := "secret-volume"
    	volumeName := v1.UniqueVolumeName(secretName)
    	volumeMode := v1.PersistentVolumeBlock
    	tmpSpec := &volume.Spec{PersistentVolume: &v1.PersistentVolume{Spec: v1.PersistentVolumeSpec{VolumeMode: &volumeMode}}}
    
    	// Act
    	for i := range volumesToMount {
    		podName := "pod-" + strconv.Itoa(i+1)
    		pod := getTestPodWithSecret(podName, secretName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. pkg/volume/iscsi/attacher.go

    		return nil, err
    	}
    	exec := host.GetExec(iscsiPluginName)
    
    	volumeMode, err := volumeutil.GetVolumeMode(spec)
    	if err != nil {
    		return nil, err
    	}
    
    	klog.V(5).Infof("iscsi: VolumeSpecToMounter volumeMode %s", volumeMode)
    	return &iscsiDiskMounter{
    		iscsiDisk:  iscsiDisk,
    		fsType:     fsType,
    		volumeMode: volumeMode,
    		readOnly:   readOnly,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 04 08:51:31 UTC 2022
    - 6.8K bytes
    - Viewed (0)
Back to top