k8s-operator: adding session type to cast header (#16660)

Updates #16490

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
This commit is contained in:
Tom Meadows 2025-07-28 11:15:14 +01:00 committed by chaosinthecrd
parent 91d65e03e8
commit eacb8e806a
No known key found for this signature in database
GPG Key ID: 52ED56820AF046EE

View File

@ -184,9 +184,10 @@ func (h *Hijacker) setUpRecording(ctx context.Context, conn net.Conn) (net.Conn,
SrcNode: strings.TrimSuffix(h.who.Node.Name, "."),
SrcNodeID: h.who.Node.StableID,
Kubernetes: &sessionrecording.Kubernetes{
PodName: h.pod,
Namespace: h.ns,
Container: container,
PodName: h.pod,
Namespace: h.ns,
Container: container,
SessionType: string(h.sessionType),
},
}
if !h.who.Node.IsTagged() {