Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 73 for PersistentVolumeReclaimPolicy (0.31 sec)

  1. staging/src/k8s.io/api/testdata/v1.30.0/storage.k8s.io.v1beta1.VolumeAttachment.yaml

                  values:
                  - valuesValue
                matchFields:
                - key: keyValue
                  operator: operatorValue
                  values:
                  - valuesValue
          persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicyValue
          photonPersistentDisk:
            fsType: fsTypeValue
            pdID: pdIDValue
          portworxVolume:
            fsType: fsTypeValue
            readOnly: true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. pkg/volume/hostpath/host_path_test.go

    	if expectedAmt != actualAmt {
    		t.Errorf("Expected capacity %+v but got %+v", expectedAmt, actualAmt)
    	}
    
    	if pv.Spec.PersistentVolumeReclaimPolicy != v1.PersistentVolumeReclaimDelete {
    		t.Errorf("Expected reclaim policy %+v but got %+v", v1.PersistentVolumeReclaimDelete, pv.Spec.PersistentVolumeReclaimPolicy)
    	}
    
    	os.RemoveAll(hostPathCreator.basePath)
    
    }
    
    func TestInvalidHostPath(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  3. pkg/volume/portworx/portworx.go

    			Annotations: map[string]string{
    				util.VolumeDynamicallyCreatedByKey: "portworx-volume-dynamic-provisioner",
    			},
    		},
    		Spec: v1.PersistentVolumeSpec{
    			PersistentVolumeReclaimPolicy: c.options.PersistentVolumeReclaimPolicy,
    			AccessModes:                   c.options.PVC.Spec.AccessModes,
    			Capacity: v1.ResourceList{
    				v1.ResourceName(v1.ResourceStorage): resource.MustParse(fmt.Sprintf("%dGi", sizeGiB)),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. pkg/volume/hostpath/host_path.go

    			Name: r.options.PVName,
    			Annotations: map[string]string{
    				util.VolumeDynamicallyCreatedByKey: "hostpath-dynamic-provisioner",
    			},
    		},
    		Spec: v1.PersistentVolumeSpec{
    			PersistentVolumeReclaimPolicy: r.options.PersistentVolumeReclaimPolicy,
    			AccessModes:                   r.options.PVC.Spec.AccessModes,
    			Capacity: v1.ResourceList{
    				v1.ResourceName(v1.ResourceStorage): capacity,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. pkg/registry/core/persistentvolume/storage/storage_test.go

    			PersistentVolumeSource: api.PersistentVolumeSource{
    				HostPath: &api.HostPathVolumeSource{Path: "/foo", Type: newHostPathType(string(api.HostPathDirectoryOrCreate))},
    			},
    			PersistentVolumeReclaimPolicy: api.PersistentVolumeReclaimRetain,
    		},
    		Status: api.PersistentVolumeStatus{
    			Phase:                   api.VolumePending,
    			Message:                 "bar",
    			Reason:                  "foo",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. pkg/apis/core/v1/defaults.go

    	}
    }
    func SetDefaults_PersistentVolume(obj *v1.PersistentVolume) {
    	if obj.Status.Phase == "" {
    		obj.Status.Phase = v1.VolumePending
    	}
    	if obj.Spec.PersistentVolumeReclaimPolicy == "" {
    		obj.Spec.PersistentVolumeReclaimPolicy = v1.PersistentVolumeReclaimRetain
    	}
    	if obj.Spec.VolumeMode == nil {
    		obj.Spec.VolumeMode = new(v1.PersistentVolumeMode)
    		*obj.Spec.VolumeMode = v1.PersistentVolumeFilesystem
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:24:15 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. pkg/volume/portworx/portworx_test.go

    	}
    
    	// Test Provisioner
    	options := volume.VolumeOptions{
    		PVC:                           volumetest.CreateTestPVC("100Gi", []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce}),
    		PersistentVolumeReclaimPolicy: v1.PersistentVolumeReclaimDelete,
    	}
    
    	provisioner, err := plug.(*portworxVolumePlugin).newProvisionerInternal(options, &fakePortworxManager{})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 21 02:17:04 UTC 2021
    - 7.4K bytes
    - Viewed (0)
  8. pkg/apis/core/fuzzer/fuzzer.go

    			pv.Status.Phase = types[c.Rand.Intn(len(types))]
    			pv.Status.Message = c.RandString()
    			reclamationPolicies := []core.PersistentVolumeReclaimPolicy{core.PersistentVolumeReclaimRecycle, core.PersistentVolumeReclaimRetain}
    			pv.Spec.PersistentVolumeReclaimPolicy = reclamationPolicies[c.Rand.Intn(len(reclamationPolicies))]
    			volumeModes := []core.PersistentVolumeMode{core.PersistentVolumeFilesystem, core.PersistentVolumeBlock}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. pkg/controller/volume/persistentvolume/pv_controller.go

    			}
    			return err
    		})
    
    	default:
    		// Unknown PersistentVolumeReclaimPolicy
    		if _, err := ctrl.updateVolumePhaseWithEvent(ctx, volume, v1.VolumeFailed, v1.EventTypeWarning, "VolumeUnknownReclaimPolicy", "Volume has unrecognized PersistentVolumeReclaimPolicy"); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 89.2K bytes
    - Viewed (0)
  10. pkg/controller/volume/persistentvolume/recycle_test.go

    			initialVolumes:  newVolumeArray("volume6-10", "1Gi", "uid6-10", "claim6-10", v1.VolumeBound, "Unknown", classEmpty),
    			expectedVolumes: withMessage("Volume has unrecognized PersistentVolumeReclaimPolicy", newVolumeArray("volume6-10", "1Gi", "uid6-10", "claim6-10", v1.VolumeFailed, "Unknown", classEmpty)),
    			initialClaims:   noclaims,
    			expectedClaims:  noclaims,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
Back to top