Skip to content

Commit 33d357d

Browse files
authored
fix: create tunnel (#223)
Signed-off-by: Ashing Zheng <[email protected]>
1 parent 8ae1f23 commit 33d357d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/e2e/scaffold/scaffold.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,27 +289,23 @@ func (s *Scaffold) createDataplaneTunnels(
289289
serviceName string,
290290
) (*k8s.Tunnel, *k8s.Tunnel, error) {
291291
var (
292-
httpNodePort int
293-
httpsNodePort int
294-
httpPort int
295-
httpsPort int
292+
httpPort int
293+
httpsPort int
296294
)
297295

298296
for _, port := range svc.Spec.Ports {
299297
switch port.Name {
300298
case "http":
301-
httpNodePort = int(port.NodePort)
302299
httpPort = int(port.Port)
303300
case "https":
304-
httpsNodePort = int(port.NodePort)
305301
httpsPort = int(port.Port)
306302
}
307303
}
308304

309305
httpTunnel := k8s.NewTunnel(kubectlOpts, k8s.ResourceTypeService, serviceName,
310-
httpNodePort, httpPort)
306+
0, httpPort)
311307
httpsTunnel := k8s.NewTunnel(kubectlOpts, k8s.ResourceTypeService, serviceName,
312-
httpsNodePort, httpsPort)
308+
0, httpsPort)
313309

314310
if err := httpTunnel.ForwardPortE(s.t); err != nil {
315311
return nil, nil, err

0 commit comments

Comments
 (0)