mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
cmd/k8s-operator: send container name to session recorder (#12763)
Updates tailscale/corp#19821 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
parent
c8f258a904
commit
6a982faa7d
@ -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…
Reference in New Issue
Block a user