k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Context names with whitespace don't work

Open pranaysreeram opened this issue 2 months ago • 2 comments




Describe the bug Kubectl works fine for contexts containing whitespace, but k9s does not. This is due to the string quoting issue.

To Reproduce Steps to reproduce the behavior:

  1. Go to kube config
  2. Rename a context to include whitespace. For example, name "ctx1-aws" to "ctx1 (aws)"
  3. In k9s, try to enter into that cluster
  4. Get a "dial toast" error

Versions (please complete the following information):

  • OS: OSX
  • K9s: latest

Additional context Add any other context about the problem here.

pranaysreeram avatar Nov 03 '25 22:11 pranaysreeram

https://github.com/derailed/k9s/pull/3653

pranaysreeram avatar Nov 03 '25 22:11 pranaysreeram

CC @derailed @mpas97 have pr for this, let me know if any other changes needed, thanks!

pranaysreeram avatar Nov 21 '25 20:11 pranaysreeram

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Dec 22 '25 02:12 github-actions[bot]