Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 216 for fdpath (0.31 sec)

  1. pkg/apis/flowcontrol/validation/validation.go

    //  4. Wildcard "*" should only do suffix glob matching. Note that wildcard also matches slashes.
    func ValidateNonResourceURLPath(path string, fldPath *field.Path) *field.Error {
    	if len(path) == 0 {
    		return field.Invalid(fldPath, path, "must not be empty")
    	}
    	if path == "/" { // root path
    		return nil
    	}
    
    	if !strings.HasPrefix(path, "/") {
    		return field.Invalid(fldPath, path, "must start with slash")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  2. pkg/apis/networking/validation/validation.go

    		}
    		if len(path.Path) > 0 {
    			for _, invalidSeq := range invalidPathSequences {
    				if strings.Contains(path.Path, invalidSeq) {
    					allErrs = append(allErrs, field.Invalid(fldPath.Child("path"), path.Path, fmt.Sprintf("must not contain '%s'", invalidSeq)))
    				}
    			}
    
    			for _, invalidSuff := range invalidPathSuffixes {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 07 14:48:01 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  3. pkg/apis/rbac/validation/validation.go

    func ValidatePolicyRule(rule rbac.PolicyRule, isNamespaced bool, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	if len(rule.Verbs) == 0 {
    		allErrs = append(allErrs, field.Required(fldPath.Child("verbs"), "verbs must contain at least one value"))
    	}
    
    	if len(rule.NonResourceURLs) > 0 {
    		if isNamespaced {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:48:21 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/audit/validation/validation.go

    	return allErrs
    }
    
    func validatePolicyRule(rule audit.PolicyRule, fldPath *field.Path) field.ErrorList {
    	var allErrs field.ErrorList
    	allErrs = append(allErrs, validateLevel(rule.Level, fldPath.Child("level"))...)
    	allErrs = append(allErrs, validateNonResourceURLs(rule.NonResourceURLs, fldPath.Child("nonResourceURLs"))...)
    	allErrs = append(allErrs, validateResources(rule.Resources, fldPath.Child("resources"))...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 15 14:13:07 UTC 2019
    - 4.6K bytes
    - Viewed (0)
  5. pkg/apis/autoscaling/validation/validation.go

    	allErrs := field.ErrorList{}
    
    	allErrs = append(allErrs, ValidateCrossVersionObjectReference(src.DescribedObject, fldPath.Child("describedObject"))...)
    	allErrs = append(allErrs, validateMetricIdentifier(src.Metric, fldPath.Child("metric"))...)
    	allErrs = append(allErrs, validateMetricTarget(src.Target, fldPath.Child("target"))...)
    
    	if src.Target.Value == nil && src.Target.AverageValue == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 25 00:58:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. pkg/proxy/apis/config/validation/validation.go

    	}
    
    	return allErrs
    }
    
    func validateKubeProxyIPVSConfiguration(config kubeproxyconfig.KubeProxyIPVSConfiguration, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    
    	if config.SyncPeriod.Duration <= 0 {
    		allErrs = append(allErrs, field.Invalid(fldPath.Child("SyncPeriod"), config.SyncPeriod, "must be greater than 0"))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. pkg/apis/storage/validation/validation.go

    func validateVolumeAttachmentSpec(
    	spec *storage.VolumeAttachmentSpec, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	allErrs = append(allErrs, validateAttacher(spec.Attacher, fldPath.Child("attacher"))...)
    	allErrs = append(allErrs, validateVolumeAttachmentSource(&spec.Source, fldPath.Child("source"))...)
    	allErrs = append(allErrs, validateNodeName(spec.NodeName, fldPath.Child("nodeName"))...)
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation.go

    	})
    }
    
    func ValidateStructuralWithOptions(fldPath *field.Path, s *Structural, opts ValidationOptions) field.ErrorList {
    	allErrs := field.ErrorList{}
    
    	allErrs = append(allErrs, validateStructuralInvariants(s, rootLevel, fldPath, opts)...)
    	allErrs = append(allErrs, validateStructuralCompleteness(s, fldPath, opts)...)
    
    	// sort error messages. Otherwise, the errors slice will change every time due to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  9. pkg/apis/core/v1/validation/validation.go

    func AccumulateUniqueHostPorts(containers []v1.Container, accumulator *sets.String, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    
    	for ci, ctr := range containers {
    		idxPath := fldPath.Index(ci)
    		portsPath := idxPath.Child("ports")
    		for pi := range ctr.Ports {
    			idxPath := portsPath.Index(pi)
    			port := ctr.Ports[pi].HostPort
    			if port == 0 {
    				continue
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/validation/validation.go

    func ValidateConfiguration(config *internalapi.Configuration) error {
    	allErrs := field.ErrorList{}
    	fldpath := field.NewPath("podtolerationrestriction")
    	allErrs = append(allErrs, validation.ValidateTolerations(config.Default, fldpath.Child("default"))...)
    	allErrs = append(allErrs, validation.ValidateTolerations(config.Whitelist, fldpath.Child("whitelist"))...)
    	if len(allErrs) > 0 {
    		return fmt.Errorf("invalid config: %v", allErrs)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 09 11:14:08 UTC 2017
    - 1.3K bytes
    - Viewed (0)
Back to top