File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments