- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for tooMany (0.17 sec)
-
pkg/apis/discovery/validation/validation.go
func validateEndpoints(endpoints []discovery.Endpoint, addrType discovery.AddressType, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if len(endpoints) > maxEndpoints { allErrs = append(allErrs, field.TooMany(fldPath, len(endpoints), maxEndpoints)) return allErrs } for i, endpoint := range endpoints { idxPath := fldPath.Index(i) addressPath := idxPath.Child("addresses") if len(endpoint.Addresses) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 18 08:49:15 UTC 2021 - 7.8K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/FileHierarchySetTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:38 UTC 2024 - 12.6K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultSnapshotHierarchyTest.groovy
assertHasNoMetadata(s5, dir2) assertHasNoMetadata(s5, tooMany) assertPartialDirectoryNode(s5, parent) flatten(s5) == [parent.path, "1:dir", "1:dir1", "2:child1"] def s6 = updateDir(single, tooMany) assertDirectorySnapshot(s6, dir1) assertDirectorySnapshot(s6, child) assertDirectorySnapshot(s6, tooMany) assertHasNoMetadata(s6, dir2)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:32 UTC 2023 - 32.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go
msg = "value is too long" } return &Error{ErrorTypeTooLong, field.String(), value, msg} } // TooMany returns a *Error indicating "too many". This is used to // report that a given list has too many items. This is similar to TooLong, // but the returned error indicates quantity instead of length. func TooMany(field *Path, actualQuantity, maxQuantity int) *Error { var msg string if maxQuantity >= 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) -
src/cmd/compile/internal/typecheck/typecheck.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation.go
max = i } allErrs = append(allErrs, field.TooMany(errPath, int(actual), int(max))) case openapierrors.TooManyPropertiesCode: actual := int64(-1) if i, ok := err.Value.(int64); ok { actual = i } max := int64(-1) if i, ok := err.Valid.(int64); ok { max = i } allErrs = append(allErrs, field.TooMany(errPath, int(actual), int(max)))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 24 18:23:28 UTC 2023 - 15K bytes - Viewed (0) -
pkg/apis/batch/validation/validation.go
var allErrs field.ErrorList rulesPath := fldPath.Child("rules") if len(spec.PodFailurePolicy.Rules) > maxPodFailurePolicyRules { allErrs = append(allErrs, field.TooMany(rulesPath, len(spec.PodFailurePolicy.Rules), maxPodFailurePolicyRules)) } containerNames := sets.NewString() for _, containerSpec := range spec.Template.Spec.Containers { containerNames.Insert(containerSpec.Name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 16:43:24 UTC 2024 - 51.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go
// This allows us to support scenarios where the API server is initially set up without // any authenticators and then authenticators are added later via dynamic config. if len(c.JWT) > 64 { allErrs = append(allErrs, field.TooMany(root, len(c.JWT), 64)) return allErrs } seenIssuers := sets.New[string]() seenDiscoveryURLs := sets.New[string]() for i, a := range c.JWT { fldPath := root.Index(i)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 31.3K bytes - Viewed (0) -
pkg/kubelet/kubelet_server_journal.go
if err := safeServiceName(s); err != nil { allErrs = append(allErrs, field.Invalid(field.NewPath("query"), s, err.Error())) } } if len(services) > maxServices { allErrs = append(allErrs, field.TooMany(field.NewPath("query"), len(services), maxServices)) } return allErrs } func (n *nodeLogQuery) validate() field.ErrorList { allErrs := validateServices(n.Services) switch {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 26 18:56:28 UTC 2023 - 13.5K bytes - Viewed (0) -
pkg/apis/admissionregistration/validation/validation.go
var allErrors field.ErrorList conditionNames := sets.NewString() if len(m) > 64 { allErrors = append(allErrors, field.TooMany(fldPath, len(m), 64)) } for i, matchCondition := range m { allErrors = append(allErrors, validateMatchCondition(&matchCondition, opts, fldPath.Index(i))...) if len(matchCondition.Name) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 56.6K bytes - Viewed (0)