mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-17 23:36:03 +00:00
Automatic merge from submit-queue Add redirect support to SpdyRoundTripper Add support for following redirects to the SpdyRoundTripper. This is necessary for clients using it directly (e.g. the apiserver talking directly to the kubelet) because the CRI streaming server issues a redirect for streaming requests. We need this in OpenShift because we have code that executes inside our apiserver that talks directly to the node to perform an attach request, and we need to be able to follow that redirect. This code was adapted from the upgrade-aware proxy handler. cc @smarterclayton @sttts @liggitt @timstclair @kubernetes/sig-api-machinery-pr-reviews