Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsRequestEntityTooLargeError (0.2 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go

    			expectMatch: false,
    		},
    		{
    			name:        "Nil",
    			expectMatch: false,
    		},
    	}
    
    	for _, tc := range testCases {
    		if result := IsRequestEntityTooLargeError(tc.err); result != tc.expectMatch {
    			t.Errorf("Expect match %t, got match %t", tc.expectMatch, result)
    		}
    	}
    }
    
    func TestIsUnexpectedServerError(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go

    	if code == http.StatusTooManyRequests {
    		return true
    	}
    	return false
    }
    
    // IsRequestEntityTooLargeError determines if err is an error which indicates
    // the request entity is too large.
    // It supports wrapped errors and returns false when the error is nil.
    func IsRequestEntityTooLargeError(err error) bool {
    	reason, code := reasonAndCodeForError(err)
    	if reason == metav1.StatusReasonRequestEntityTooLarge {
    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. pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller.go

    	//   1. request is so big the generic request catcher finds it
    	//   2. the content is so large that that the server sends a validation error "Too long: must have at most 1048576 characters"
    	if apierrors.IsRequestEntityTooLargeError(err) || (apierrors.IsInvalid(err) && strings.Contains(err.Error(), "Too long")) {
    		if deleteErr := configMapClient.ConfigMaps(required.Namespace).Delete(context.TODO(), required.Name, metav1.DeleteOptions{}); deleteErr != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top