mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #107176 from Iceber/fix-request-info
if the ok returned by RequestInfoFrom is false, the requestInfo is nil
This commit is contained in:
		@@ -235,7 +235,7 @@ func (r *crdHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
 | 
			
		||||
	if !ok {
 | 
			
		||||
		responsewriters.ErrorNegotiated(
 | 
			
		||||
			apierrors.NewInternalError(fmt.Errorf("no RequestInfo found in the context")),
 | 
			
		||||
			Codecs, schema.GroupVersion{Group: requestInfo.APIGroup, Version: requestInfo.APIVersion}, w, req,
 | 
			
		||||
			Codecs, schema.GroupVersion{}, w, req,
 | 
			
		||||
		)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user