- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for NewRequestEntityTooLargeError (0.46 sec)
-
pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller_test.go
client := fake.NewSimpleClientset() client.PrependReactor("update", "configmaps", func(action clienttesting.Action) (handled bool, ret runtime.Object, err error) { return true, nil, apierrors.NewRequestEntityTooLargeError("way too big") }) client.PrependReactor("delete", "configmaps", func(action clienttesting.Action) (handled bool, ret runtime.Object, err error) { return true, nil, nil })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 00:05:53 UTC 2023 - 14.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 17K bytes - Viewed (0) -
pkg/kube/util.go
lr := &io.LimitedReader{ R: req.Body, N: MaxRequestBodyBytes + 1, } data, err := io.ReadAll(lr) if err != nil { return nil, err } if lr.N <= 0 { return nil, errors.NewRequestEntityTooLargeError(fmt.Sprintf("limit is %d", MaxRequestBodyBytes)) } return data, nil } // StripUnusedFields is the transform function for shared informers,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 05:10:23 UTC 2024 - 18.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
patchObj, err := jsonpatch.DecodePatch(p.patchBytes) if err != nil { return nil, nil, errors.NewBadRequest(err.Error()) } if len(patchObj) > maxJSONPatchOperations { return nil, nil, errors.NewRequestEntityTooLargeError( fmt.Sprintf("The allowed maximum operations in a JSON patch is %d, got %d", maxJSONPatchOperations, len(patchObj))) } patchedJS, err := patchObj.Apply(versionedJS) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 28.5K bytes - Viewed (0)