kubernetes / kubernetes/kubectl
kubectl exec escape sequence (tilde-dot)
- Dominant language
- Go
- Stars
- 3.3k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
As a big user of `kubectl exec` _and_ a big commuter to and from work, I often am in situations where I have some `exec` instance open, but the connection is flaky.
When that happens, I _know_ that the connection will eventually timeout, but until then, that terminal window has become useless.
ssh has a nice `~.` (tilde-dot) escape sequence that instantly terminates the connection in those situations.
Perhaps `kubectl` can use the same technique? For someone like me, that would be a great UX improvement.
Contributor guide
Research direction
Start at the kubectl exec entry point and trace how terminal input and the remote connection are handled. Define the tilde-dot behavior and verify that it terminates a flaky exec session without affecting ordinary input; add focused coverage for the escape sequence and run the relevant kubectl exec tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100