telepresenceio / telepresence

Local development against a remote Kubernetes or OpenShift cluster
https://www.telepresence.io
Other
6.61k stars 521 forks source link

Improve telepresence list performance #3712

Closed thallgren closed 3 weeks ago

thallgren commented 4 weeks ago

This PR modifies the list command to optimize performance and reduce dependency on Kubernetes RBAC privileges. Instead of directly watching Kubernetes workload resources, the client now subscribes to the Traffic Manager's WorkloadEventsWatcher to track interceptable workloads. This change offers two key benefits:

  1. Reduced RBAC Requirements: The client no longer needs RBAC permissions to read and watch Kubernetes resources.
  2. Improved Performance: By significantly reducing the number of API requests sent to the Traffic Manager, overall performance is enhanced.

Closes #3714