osm
osm copied to clipboard
Remove pkg/debugger dependency on k8s.Controller
trafficstars
The debugger package shouldn't need a dependency on k8s.Controller. Currently it calls GetPodForProxy, and uses the pod info to port-forward.
ie: PortForwardToProxy(ctx context.Context, proxy *envoy.Proxy, int localPort) (close func(), error). This should replace the calls in pkg/debugger, such that we can remove the k8s.Controller for the debug struct.
The PortForwardToProxy method should exist on the compute client in pkg/compute/kube
The PortForwardToProxy method should exist on the compute client in pkg/compute/kube