Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewRequestEntityTooLargeError (0.5 sec)

  1. 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)
  2. 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)
Back to top