diff options
| author | Irbe Krumina <irbe@tailscale.com> | 2024-07-26 20:05:49 +0300 |
|---|---|---|
| committer | Irbe Krumina <irbe@tailscale.com> | 2024-07-26 21:32:37 +0300 |
| commit | 69c27b23cb8ae46e6f0845817e879d636f26e70a (patch) | |
| tree | 62d00d75cc340334c636c4b58e85ab1aba6dd507 /cmd/sync-containers | |
| parent | 8d7b78f3f795e781d939750893610639b224d81a (diff) | |
| download | tailscale-irbekrm/websocket.tar.xz tailscale-irbekrm/websocket.zip | |
cmd/k8s-operator,k8s-operator/session-recording: implement support for WebSocket protocolirbekrm/websocket
Kubernetes currently supports two streaming protocols- SPDY and
WebSockets. WebSockets are replacing SPDY, see
https://github.com/kubernetes/enhancements/issues/4006
Our 'kubectl exec' session recording was only supporting
SPDY.
This change:
- adds functionality to parse streaming sessions over WebSockets
- for sessions that the API server proxy has determined need to be
recorded, determines if the session is over SPDY or WebSockets and
invoke the relevant parser accordingly
- refactors the session recording logic into its own package
Updates tailscale/corp#19821
Signed-off-by: Irbe Krumina <irbe@tailscale.com>
Diffstat (limited to 'cmd/sync-containers')
0 files changed, 0 insertions, 0 deletions
