Remove k8s.io/kubernetes from go.mod

Signed-off-by: rick <rick@jenkins-zh.cn>
This commit is contained in:
rick
2021-02-19 09:41:01 +08:00
parent 5d9445d18a
commit 5a8e8ca35e
8 changed files with 21 additions and 285 deletions

View File

@@ -290,7 +290,6 @@ func (h *UpgradeAwareHandler) tryUpgrade(w http.ResponseWriter, req *http.Reques
backendHTTPResponse, headerBytes, err := getResponse(io.MultiReader(bytes.NewReader(rawResponse), backendConn))
if err != nil {
klog.V(6).Infof("Proxy connection error: %v", err)
klog.Info(backendHTTPResponse.Body, backendHTTPResponse)
h.Responder.Error(w, req, err)
return true
}
@@ -328,7 +327,6 @@ func (h *UpgradeAwareHandler) tryUpgrade(w http.ResponseWriter, req *http.Reques
if backendHTTPResponse.StatusCode != http.StatusSwitchingProtocols {
// If the backend did not upgrade the request, echo the response from the backend to the client and return, closing the connection.
klog.V(6).Infof("Proxy upgrade error, status code %d", backendHTTPResponse.StatusCode)
klog.Info(backendHTTPResponse.Body, 333, backendHTTPResponse)
// set read/write deadlines
deadline := time.Now().Add(10 * time.Second)
backendConn.SetReadDeadline(deadline)