tilt
tilt copied to clipboard
Ability to suppress automatic links in UI
Describe the Feature You Want
Ability to disable automatic links created when using docker_compose(...)
that has services that expose ports.
Current Behavior
Links are automatically created when a service exposes a port but there is no way to turn this off, e.g. I tried defining the resource using dc_resource
and providing links=[]
, links=None
and providing a dummy link but they either have no effect or they just append to the automatically added links.
Why Do You Want This?
The generated links are usually great, but in certain circumstances (e.g. when a service exposes a port range, it generates a link for each port in the range) it can bloat the UI. It would also be useful if you wanted to rename the links to something meaningful instead.
I've also experienced this. I've also often add links manually to the service's specific path, and localhost:port/
will fail every time when localhost:port/myapp/
works fine - particularly in services designed to be proxied to. The /
link ends up misleading to developers unfamiliar with that service.
Being able to prevent that stubbed toe would be an improvement.
I just opened a PR that adds this functionality. Hopefully it will be approved!
@nicks can probably close this now :)