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(
289
289
serviceName string ,
290
290
) (* k8s.Tunnel , * k8s.Tunnel , error ) {
291
291
var (
292
- httpNodePort int
293
- httpsNodePort int
294
- httpPort int
295
- httpsPort int
292
+ httpPort int
293
+ httpsPort int
296
294
)
297
295
298
296
for _ , port := range svc .Spec .Ports {
299
297
switch port .Name {
300
298
case "http" :
301
- httpNodePort = int (port .NodePort )
302
299
httpPort = int (port .Port )
303
300
case "https" :
304
- httpsNodePort = int (port .NodePort )
305
301
httpsPort = int (port .Port )
306
302
}
307
303
}
308
304
309
305
httpTunnel := k8s .NewTunnel (kubectlOpts , k8s .ResourceTypeService , serviceName ,
310
- httpNodePort , httpPort )
306
+ 0 , httpPort )
311
307
httpsTunnel := k8s .NewTunnel (kubectlOpts , k8s .ResourceTypeService , serviceName ,
312
- httpsNodePort , httpsPort )
308
+ 0 , httpsPort )
313
309
314
310
if err := httpTunnel .ForwardPortE (s .t ); err != nil {
315
311
return nil , nil , err
You can’t perform that action at this time.
0 commit comments