tilt
tilt copied to clipboard
ui does not correctly display in dynamically allocated ports "0:[port]"
Steps to Reproduce
- Update tilt-example-html with
k8s_resource('example-html', port_forwards=["0:8000"])
- Run
tilt up - Visit the Tilt ui
Expected Behavior
the UI should link to the service we're port-fowarding to
Current Behavior
the UI links to localhost:0
Additional Info
The weirdest part of this bug is that the API server actually knows the correct port
$ tilt get pf -o yaml
apiVersion: v1
items:
- apiVersion: tilt.dev/v1alpha1
kind: PortForward
metadata:
annotations:
tilt.dev/log-span-id: kubernetesapply:example-html
tilt.dev/resource: example-html
creationTimestamp: "2023-10-10T21:53:23Z"
name: example-html-example-html-bc598cb58-pxq7t
ownerReferences:
- apiVersion: tilt.dev/v1alpha1
blockOwnerDeletion: true
controller: true
kind: KubernetesDiscovery
name: example-html
uid: 28f91202-4a98-4dd6-bf11-5e48f87c9fa4
resourceVersion: "92"
uid: 7b36ea85-6ab4-4cf6-a640-ab5ec31f86e7
spec:
cluster: default
forwards:
- containerPort: 8000
host: localhost
namespace: default
podName: example-html-bc598cb58-pxq7t
status:
forwardStatuses:
- addresses:
- 127.0.0.1
- ::1
containerPort: 8000
localPort: 46753
startedAt: "2023-10-10T21:53:36.204691Z"
kind: List
metadata:
resourceVersion: ""