mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-29 15:23:45 +00:00
k8s-operator: adding session type to cast header
Updates #16490 Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
This commit is contained in:
parent
bfebf870ae
commit
0e44016c50
@ -184,9 +184,10 @@ func (h *Hijacker) setUpRecording(ctx context.Context, conn net.Conn) (net.Conn,
|
|||||||
SrcNode: strings.TrimSuffix(h.who.Node.Name, "."),
|
SrcNode: strings.TrimSuffix(h.who.Node.Name, "."),
|
||||||
SrcNodeID: h.who.Node.StableID,
|
SrcNodeID: h.who.Node.StableID,
|
||||||
Kubernetes: &sessionrecording.Kubernetes{
|
Kubernetes: &sessionrecording.Kubernetes{
|
||||||
PodName: h.pod,
|
PodName: h.pod,
|
||||||
Namespace: h.ns,
|
Namespace: h.ns,
|
||||||
Container: container,
|
Container: container,
|
||||||
|
SessionType: string(h.sessionType),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if !h.who.Node.IsTagged() {
|
if !h.who.Node.IsTagged() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user