Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for NotSupported (0.59 sec)

  1. pkg/apis/admissionregistration/validation/validation.go

    		allErrors = append(allErrors, field.NotSupported(fldPath.Child("failurePolicy"), *hook.FailurePolicy, supportedFailurePolicies.List()))
    	}
    	if hook.MatchPolicy != nil && !supportedMatchPolicies.Has(string(*hook.MatchPolicy)) {
    		allErrors = append(allErrors, field.NotSupported(fldPath.Child("matchPolicy"), *hook.MatchPolicy, supportedMatchPolicies.List()))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 56.6K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/validation/validation_pluginargs.go

    func validateDefaultingType(p *field.Path, v config.PodTopologySpreadConstraintsDefaulting, constraints []v1.TopologySpreadConstraint) *field.Error {
    	if v != config.SystemDefaulting && v != config.ListDefaulting {
    		return field.NotSupported(p, v, []string{string(config.SystemDefaulting), string(config.ListDefaulting)})
    	}
    	if v == config.SystemDefaulting && len(constraints) > 0 {
    		return field.Invalid(p, v, "when .defaultConstraints are not empty")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 09:29:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  3. pkg/apis/discovery/validation/validation.go

    		if endpointPort.Protocol == nil {
    			allErrs = append(allErrs, field.Required(idxPath.Child("protocol"), ""))
    		} else if !supportedPortProtocols.Has(string(*endpointPort.Protocol)) {
    			allErrs = append(allErrs, field.NotSupported(idxPath.Child("protocol"), *endpointPort.Protocol, supportedPortProtocols.List()))
    		}
    
    		if endpointPort.AppProtocol != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 08:49:15 UTC 2021
    - 7.8K bytes
    - Viewed (0)
  4. plugin/pkg/admission/eventratelimit/apis/eventratelimit/validation/validation.go

    			allowedValues := make([]string, len(limitTypes))
    			i := 0
    			for limitType := range limitTypes {
    				allowedValues[i] = string(limitType)
    				i++
    			}
    			allErrs = append(allErrs, field.NotSupported(idxPath.Child("type"), limit.Type, allowedValues))
    		}
    		if limit.Burst <= 0 {
    			allErrs = append(allErrs, field.Invalid(idxPath.Child("burst"), limit.Burst, "must be positive"))
    		}
    		if limit.QPS <= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 17:38:03 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  5. pkg/apis/flowcontrol/validation/validation.go

    	}
    	if spec.DistinguisherMethod != nil {
    		if !supportedDistinguisherMethods.Has(string(spec.DistinguisherMethod.Type)) {
    			allErrs = append(allErrs, field.NotSupported(fldPath.Child("distinguisherMethod").Child("type"), spec.DistinguisherMethod, supportedDistinguisherMethods.List()))
    		}
    	}
    	if len(spec.PriorityLevelConfiguration.Name) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/egressselector/config.go

    		case apiserver.ProtocolGRPC:
    			allErrs = append(allErrs, validateGRPCTransport(service.Connection.Transport, fldPath)...)
    		default:
    			allErrs = append(allErrs, field.NotSupported(
    				fldPath.Child("protocol"),
    				service.Connection.ProxyProtocol,
    				[]string{
    					string(apiserver.ProtocolDirect),
    					string(apiserver.ProtocolHTTPConnect),
    					string(apiserver.ProtocolGRPC),
    				}))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go

    	return &Error{ErrorTypeInvalid, field.String(), value, detail}
    }
    
    // NotSupported returns a *Error indicating "unsupported value".
    // This is used to report unknown values for enumerated fields (e.g. a list of
    // valid values).
    func NotSupported[T ~string](field *Path, value interface{}, validValues []T) *Error {
    	detail := ""
    	if len(validValues) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  8. pkg/apis/autoscaling/validation/validation.go

    				fmt.Sprintf("must be less than or equal to %v", MaxStabilizationWindowSeconds)))
    		}
    		if rules.SelectPolicy != nil && !validSelectPolicyTypes.Has(string(*rules.SelectPolicy)) {
    			allErrs = append(allErrs, field.NotSupported(fldPath.Child("selectPolicy"), rules.SelectPolicy, validSelectPolicyTypesList))
    		}
    		policiesPath := fldPath.Child("policies")
    		if len(rules.Policies) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 25 00:58:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. pkg/apis/batch/validation/validation.go

    				allErrs = append(allErrs, field.NotSupported(fldPath, *spec.PodReplacementPolicy, []batch.PodReplacementPolicy{batch.Failed}))
    			}
    			// If PodFailurePolicy not specified we allow values in supportedPodReplacementPolicy.
    		} else if !supportedPodReplacementPolicy.Has(*spec.PodReplacementPolicy) {
    			allErrs = append(allErrs, field.NotSupported(fldPath, *spec.PodReplacementPolicy, sets.List(supportedPodReplacementPolicy)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  10. pkg/apis/storage/validation/validation.go

    	allErrs := field.ErrorList{}
    	if len(string(*reclaimPolicy)) > 0 {
    		if !supportedReclaimPolicy.Has(string(*reclaimPolicy)) {
    			allErrs = append(allErrs, field.NotSupported(fldPath, reclaimPolicy, supportedReclaimPolicy.List()))
    		}
    	}
    	return allErrs
    }
    
    // ValidateVolumeAttachment validates a VolumeAttachment. This function is common for v1 and v1beta1 objects,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top