cmd/k8s-operator: send container name to session recorder (#12763)

Updates tailscale/corp#19821

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
pull/12765/head
Irbe Krumina 4 months ago committed by GitHub
parent c8f258a904
commit 6a982faa7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -117,6 +117,7 @@ func (h *spdyHijacker) setUpRecording(ctx context.Context, conn net.Conn) (net.C
Kubernetes: &Kubernetes{ Kubernetes: &Kubernetes{
PodName: h.pod, PodName: h.pod,
Namespace: h.ns, Namespace: h.ns,
Container: strings.Join(qp["container"], " "),
}, },
} }
if !h.who.Node.IsTagged() { if !h.who.Node.IsTagged() {
@ -198,6 +199,7 @@ type CastHeader struct {
type Kubernetes struct { type Kubernetes struct {
PodName string PodName string
Namespace string Namespace string
Container string
} }
func closeConnWithWarning(conn net.Conn, msg string) error { func closeConnWithWarning(conn net.Conn, msg string) error {

Loading…
Cancel
Save