kurtosis-tech / kurtosis

A platform for packaging and launching ephemeral backend stacks with a focus on approachability for the average developer.
https://docs.kurtosistech.com/
Apache License 2.0
311 stars 42 forks source link

Access public_ports from ServiceConfig #2497

Open nidhi-singh02 opened 1 week ago

nidhi-singh02 commented 1 week ago

Background & motivation

AFAIK currently ports are being exposed randomly if no public_ports is specified. Since these ports are random, do we have a way to access it from the service.

I see a API method https://docs.kurtosis.com/engine-apic-reference/#getpublicports---mapportid-portspec which is possible in golang and Typescipt, I want to get the public port in my starlark package.

Desired behaviour

Access public ports of a service in starlark package

How important is this to you?

Painful; the lack of this feature makes using Kurtosis frictionful.

What area of the product does this pertain to?

Other: anything not covered by the above

garyng2000 commented 1 week ago

yes, this makes it only good for local personal dev