From 78f66387ef7b4525cc6f61430b8aebff04e7a261 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Wed, 21 Feb 2024 14:19:09 -0600 Subject: [PATCH] fix(port-forward): Fix `error upgrading connection` --- internal/actions/port_forward/port_forward.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/actions/port_forward/port_forward.go b/internal/actions/port_forward/port_forward.go index 99ec7bb4..689c5c73 100644 --- a/internal/actions/port_forward/port_forward.go +++ b/internal/actions/port_forward/port_forward.go @@ -31,7 +31,7 @@ func (a PortForward) Run(ctx context.Context) error { if err != nil { return err } - hostUrl.Path = path.Join("api", "v1", "namespaces", a.Client.Namespace, "pods", a.JobPod.Name, "portforward") + hostUrl.Path = path.Join("api", "v1", "namespaces", a.Client.Namespace, "pods", a.DbPod.Name, "portforward") transport, upgrader, err := spdy.RoundTripperFor(a.Client.ClientConfig) if err != nil {