Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewGenericServerResponse (0.28 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/handler.go

    	}
    	klog.Errorln(buffer.String())
    
    	headers := http.Header{}
    	if ct := w.Header().Get("Content-Type"); len(ct) > 0 {
    		headers.Set("Accept", ct)
    	}
    	responsewriters.ErrorNegotiated(apierrors.NewGenericServerResponse(http.StatusInternalServerError, "", schema.GroupResource{}, "", "", 0, false), s, schema.GroupVersion{}, w, &http.Request{Header: headers})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 14 17:10:00 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. pkg/controller/clusterroleaggregation/clusterroleaggregation_controller_test.go

    					if serverSideApplyEnabled == false {
    						// UnsupportedMediaType
    						return true, nil, errors.NewGenericServerResponse(415, "get", action.GetResource().GroupResource(), "test", "Apply not supported", 0, true)
    					}
    					return true, nil, nil // clusterroleaggregator drops returned objects so no point in constructing them
    				})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top