mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Fix CRI port forwarding
Websocket support was introduced #33684, which broke the CRI implementation. This change fixes it.
This commit is contained in:
@@ -302,7 +302,7 @@ func (s *server) servePortForward(req *restful.Request, resp *restful.Response)
|
||||
return
|
||||
}
|
||||
|
||||
portForwardOptions, err := portforward.NewV4Options(req.Request)
|
||||
portForwardOptions, err := portforward.BuildV4Options(pf.Port)
|
||||
if err != nil {
|
||||
resp.WriteError(http.StatusBadRequest, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user