From 1c58146a9f1c346a9f39888a17a2928a75c9620b Mon Sep 17 00:00:00 2001 From: Jim Minter Date: Wed, 18 Nov 2020 09:54:43 -0600 Subject: [PATCH] add missing header in portforward --- pkg/util/portforward/dialer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/util/portforward/dialer.go b/pkg/util/portforward/dialer.go index 302f13a53..d4cd5a173 100644 --- a/pkg/util/portforward/dialer.go +++ b/pkg/util/portforward/dialer.go @@ -14,6 +14,7 @@ import ( "k8s.io/apimachinery/pkg/util/httpstream" "k8s.io/apimachinery/pkg/util/httpstream/spdy" "k8s.io/client-go/rest" + "k8s.io/client-go/tools/portforward" "github.com/Azure/ARO-RP/pkg/api" "github.com/Azure/ARO-RP/pkg/proxy" @@ -62,6 +63,7 @@ func dialSpdy(ctx context.Context, dialer proxy.Dialer, oc *api.OpenShiftCluster return nil, err } req.Header.Add(httpstream.HeaderConnection, httpstream.HeaderUpgrade) + req.Header.Add(httpstream.HeaderProtocolVersion, portforward.PortForwardProtocolV1Name) req.Header.Add(httpstream.HeaderUpgrade, spdy.HeaderSpdy31) err = req.Write(tlsConn)