Skip to content

Commit e64fe41

Browse files
Update Tiltfile
Co-authored-by: Markus Wieland <[email protected]>
1 parent e65eba3 commit e64fe41

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tiltfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,13 @@ for label, components, service_ports in resources:
145145
k8s_resource(
146146
component,
147147
port_forwards=[
148-
port_forward(local_port + i, service_port, name=service_port_name)
149-
for i, (service_port, service_port_name) in enumerate(service_ports)
148+
port_forward(local_port + i, service_port)
149+
for i, (service_port, _) in enumerate(service_ports)
150150
],
151+
links=[
152+
link('http://localhost:' + str(local_port + i) + '/' + service_port_name, '/' + service_port_name)
153+
for i, (_, service_port_name) in enumerate(service_ports)
154+
]
151155
labels=[label],
152156
)
153157
local_port += len(service_ports)

0 commit comments

Comments
 (0)