upbound / up

The @upbound CLI
Apache License 2.0
49 stars 42 forks source link

Navigating to Disconnected Spaces in `up ctx` can be slow/hang with many or unreachable kubeconfig contexts #549

Closed adamwg closed 4 weeks ago

adamwg commented 4 weeks ago

What happened?

up ctx lists disconnected spaces by (serially) connecting to each context in the user's kubeconfig and attempting to get the configmap that stores ingress details for Spaces. If you have a lot of contexts, or if some of them are slow/unreachable, this can by very slow or hang entirely.

How can we reproduce it?

Run up ctx and navigate to Disconnected Spaces when your kubeconfig contains a context whose cluster is unreachable from your network.

Proposed Fixes