mirror of
https://github.com/ahmetb/kubectx.git
synced 2026-03-18 03:42:12 +00:00
When `kubens` is run with no args in non-interactive mode (ListOp), start a background goroutine that prints a warning to stderr after 3 seconds if the Kubernetes API call is still in progress. The warning advises users to switch directly with `kubens -f <ns>` to avoid the slow list call. The goroutine is cancelled immediately if listing completes before the timeout. https://claude.ai/code/session_01XJXHq8WG22iqX8KaDb9RZz