Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WriteErrorString (0.46 sec)

  1. pkg/kubelet/server/server.go

    		info, ok, err := s.auth.AuthenticateRequest(req.Request)
    		if err != nil {
    			klog.ErrorS(err, "Unable to authenticate the request due to an error")
    			resp.WriteErrorString(http.StatusUnauthorized, "Unauthorized")
    			return
    		}
    		if !ok {
    			resp.WriteErrorString(http.StatusUnauthorized, "Unauthorized")
    			return
    		}
    
    		// Get authorization attributes
    		attrs := s.auth.GetRequestAttributes(info.User, req.Request)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  2. pkg/kubelet/server/stats/handler.go

    		response.WriteError(http.StatusNotFound, err)
    	default:
    		msg := fmt.Sprintf("Internal Error: %v", err)
    		klog.ErrorS(err, "HTTP InternalServerError serving", "request", request)
    		response.WriteErrorString(http.StatusInternalServerError, msg)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 21:31:38 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top