- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 259 for derrs (0.15 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/validation_test.go
schema := &structuralschema.Structural{Extensions: structuralschema.Extensions{XEmbeddedResource: true}} errs := validateEmbeddedResource(nil, tt.object, schema) seenErrs := make([]bool, len(errs)) for _, expectedError := range tt.errors { found := false for i, err := range errs { if expectedError.matches(err) && !seenErrs[i] { found = true seenErrs[i] = true break }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/admission.go
return nil } errs := []error{} registeredPlugins := sets.NewString(a.Plugins.Registered()...) for _, name := range a.EnablePlugins { if !registeredPlugins.Has(name) { errs = append(errs, fmt.Errorf("enable-admission-plugins plugin %q is unknown", name)) } } for _, name := range a.DisablePlugins { if !registeredPlugins.Has(name) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 12 08:49:42 UTC 2024 - 9.7K bytes - Viewed (0) -
pkg/apis/core/validation/validation_test.go
}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { names, errs := ValidateVolumes([]core.Volume{tc.vol}, nil, field.NewPath("field"), tc.opts) if len(errs) != len(tc.errs) { t.Fatalf("unexpected error(s): got %d, want %d: %v", len(tc.errs), len(errs), errs) } if len(errs) == 0 && (len(names) > 1 || !IsMatchedVolume(tc.vol.Name, names)) { t.Errorf("wrong names result: %v", names)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0) -
pkg/registry/admissionregistration/validatingadmissionpolicy/strategy.go
errs := validation.ValidateValidatingAdmissionPolicy(obj.(*admissionregistration.ValidatingAdmissionPolicy)) if len(errs) == 0 { // if the object is well-formed, also authorize the paramKind if err := v.authorizeCreate(ctx, obj); err != nil { errs = append(errs, field.Forbidden(field.NewPath("spec", "paramKind"), err.Error())) } } return errs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 7.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/validator.go
} func (a customResourceValidator) Validate(ctx context.Context, obj *unstructured.Unstructured, scale *apiextensions.CustomResourceSubresourceScale) field.ErrorList { if errs := a.ValidateTypeMeta(ctx, obj); len(errs) > 0 { return errs } var allErrs field.ErrorList allErrs = append(allErrs, validation.ValidateObjectMetaAccessor(obj, a.namespaceScoped, validation.NameIsDNSSubdomain, field.NewPath("metadata"))...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 14:00:05 UTC 2024 - 7.4K bytes - Viewed (0) -
cmd/kubeadm/app/componentconfigs/utils_test.go
"k8s.io/apimachinery/pkg/runtime/schema" ) func TestUnsupportedConfigVersionsError(t *testing.T) { tests := []struct { name string errs UnsupportedConfigVersionsErrorMap wantError string wantErrorMap string }{ { name: "only one error", errs: UnsupportedConfigVersionsErrorMap{ "foo": &UnsupportedConfigVersionError{ OldVersion: schema.GroupVersion{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jan 09 13:52:11 UTC 2024 - 3.1K bytes - Viewed (0) -
cmd/kube-apiserver/app/options/validation_test.go
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.MultiCIDRServiceAllocator, tc.gate) errs := validateClusterIPFlags(tc.options.Extra) if len(errs) > 0 && !tc.expectErrors { t.Errorf("expected no errors, errors found %+v", errs) } if len(errs) == 0 && tc.expectErrors { t.Errorf("expected errors, no errors found") } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 11.4K bytes - Viewed (0) -
src/cmd/vet/vet_test.go
} } if !matched { errs = append(errs, fmt.Errorf("%s:%d: no match for %#q in:\n\t%s", we.file, we.lineNum, we.reStr, strings.Join(out[n:], "\n\t"))) continue } } if len(out) > 0 { errs = append(errs, fmt.Errorf("Unmatched Errors:")) for _, errLine := range out { errs = append(errs, fmt.Errorf("%s", errLine)) } } if len(errs) == 0 { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 12.5K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux_test.go
fh.responses = fh.responses[1:] } var err error if fh.errs != nil && len(fh.errs) > 0 { err = fh.errs[0] // remove the error from the list of predefined errors and add it to request object for mocking. fh.errs = fh.errs[1:] } req := &fakeRequest{cmd: cmd, flags: flags, response: response, err: err} fh.requests = append(fh.requests, req) return req
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 18.8K bytes - Viewed (0) -
pkg/proxy/apis/config/validation/validation_test.go
} { t.Run(name, func(t *testing.T) { config := baseConfig.DeepCopy() testCase.mutateConfigFunc(config) errs := Validate(config) if len(testCase.expectedErrs) == 0 { assert.Equal(t, field.ErrorList{}, errs, "expected no validation errors") } else { assert.Equal(t, testCase.expectedErrs, errs, "did not get expected validation errors") } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 33.3K bytes - Viewed (0)