Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsRequestEntityTooLargeError (0.47 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. 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