mirror of
https://github.com/ahmetb/kubectx.git
synced 2026-03-18 03:42:12 +00:00
Replace done channel + defer with context.WithCancel so the warning goroutine is cancelled immediately when queryNamespaces returns, not when Run returns (which could be minutes later while user browses fzf). Also thread the context into queryNamespaces so the k8s List call respects it. https://claude.ai/code/session_01XJXHq8WG22iqX8KaDb9RZz