Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewRequestEntityTooLargeError (0.3 sec)

  1. 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)
  2. staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go

    		Reason:  metav1.StatusReasonTooManyRequests,
    		Message: fmt.Sprintf("Too many requests: %s", message),
    	}}
    }
    
    // NewRequestEntityTooLargeError returns an error indicating that the request
    // entity was too large.
    func NewRequestEntityTooLargeError(message string) *StatusError {
    	return &StatusError{metav1.Status{
    		Status:  metav1.StatusFailure,
    		Code:    http.StatusRequestEntityTooLarge,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 21 03:41:32 UTC 2022
    - 30.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go

    	}
    	lr := &io.LimitedReader{
    		R: req.Body,
    		N: limit + 1,
    	}
    	data, err := ioutil.ReadAll(lr)
    	if err != nil {
    		return nil, err
    	}
    	if lr.N <= 0 {
    		return nil, errors.NewRequestEntityTooLargeError(fmt.Sprintf("limit is %d", limit))
    	}
    	return data, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 17K bytes
    - Viewed (0)
  4. 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)
  5. 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