Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidationOptionsForPersistentVolume (0.59 sec)

  1. pkg/registry/core/persistentvolume/strategy.go

    	}
    }
    
    func (persistentvolumeStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	persistentvolume := obj.(*api.PersistentVolume)
    	opts := validation.ValidationOptionsForPersistentVolume(persistentvolume, nil)
    	errorList := validation.ValidatePersistentVolume(persistentvolume, opts)
    	return append(errorList, volumevalidation.ValidatePersistentVolume(persistentvolume)...)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 03:58:36 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation_test.go

    		t.Run(name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.VolumeAttributesClass, scenario.enableVolumeAttributesClass)
    
    			opts := ValidationOptionsForPersistentVolume(scenario.volume, nil)
    			errs := ValidatePersistentVolume(scenario.volume, opts)
    			if len(errs) == 0 && scenario.isExpectedFailure {
    				t.Errorf("Unexpected success for scenario: %s", name)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  3. pkg/apis/core/validation/validation.go

    	core.PersistentVolumeReclaimRecycle,
    	core.PersistentVolumeReclaimRetain)
    
    var supportedVolumeModes = sets.New(core.PersistentVolumeBlock, core.PersistentVolumeFilesystem)
    
    func ValidationOptionsForPersistentVolume(pv, oldPv *core.PersistentVolume) PersistentVolumeSpecValidationOptions {
    	opts := PersistentVolumeSpecValidationOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top