Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidatePersistentVolume (0.23 sec)

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

    	persistentvolume := obj.(*api.PersistentVolume)
    	opts := validation.ValidationOptionsForPersistentVolume(persistentvolume, nil)
    	errorList := validation.ValidatePersistentVolume(persistentvolume, opts)
    	return append(errorList, volumevalidation.ValidatePersistentVolume(persistentvolume)...)
    }
    
    // WarningsOnCreate returns warnings for the creation of the given object.
    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/volume/validation/pv_validation.go

    	"path/filepath"
    	"strings"
    
    	"k8s.io/apimachinery/pkg/util/validation/field"
    	api "k8s.io/kubernetes/pkg/apis/core"
    )
    
    // ValidatePersistentVolume validates PV object for plugin specific validation
    // We can put here validations which are specific to volume types.
    func ValidatePersistentVolume(pv *api.PersistentVolume) field.ErrorList {
    	return checkMountOption(pv)
    }
    
    func checkMountOption(pv *api.PersistentVolume) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 09 11:14:08 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  3. pkg/volume/validation/pv_validation_test.go

    				PersistentVolumeSource: api.PersistentVolumeSource{
    					HostPath: &api.HostPathVolumeSource{Path: "/a/.."},
    				},
    			}),
    		},
    	}
    
    	for name, scenario := range scenarios {
    		errs := ValidatePersistentVolume(scenario.volume)
    		if len(errs) == 0 && scenario.isExpectedFailure {
    			t.Errorf("Unexpected success for scenario: %s", name)
    		}
    		if len(errs) > 0 && !scenario.isExpectedFailure {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 3.2K bytes
    - Viewed (0)
Back to top