From 6a982faa7d554d378a9e038b1359f39f6dbfb154 Mon Sep 17 00:00:00 2001 From: Irbe Krumina Date: Wed, 10 Jul 2024 10:48:53 +0100 Subject: [PATCH] cmd/k8s-operator: send container name to session recorder (#12763) Updates tailscale/corp#19821 Signed-off-by: Irbe Krumina --- cmd/k8s-operator/spdy-hijacker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/k8s-operator/spdy-hijacker.go b/cmd/k8s-operator/spdy-hijacker.go index 5cdf97ae8..60a13bdd7 100644 --- a/cmd/k8s-operator/spdy-hijacker.go +++ b/cmd/k8s-operator/spdy-hijacker.go @@ -117,6 +117,7 @@ func (h *spdyHijacker) setUpRecording(ctx context.Context, conn net.Conn) (net.C Kubernetes: &Kubernetes{ PodName: h.pod, Namespace: h.ns, + Container: strings.Join(qp["container"], " "), }, } if !h.who.Node.IsTagged() { @@ -198,6 +199,7 @@ type CastHeader struct { type Kubernetes struct { PodName string Namespace string + Container string } func closeConnWithWarning(conn net.Conn, msg string) error {