k9s icon indicating copy to clipboard operation
k9s copied to clipboard

fix: Quote context names

Open pranaysreeram opened this issue 2 months ago • 3 comments

kubectl works fine with context names that have whitespace

For context name "ctx1 (with whitespace)", you see the following error in k9s: image

pranaysreeram avatar Nov 03 '25 22:11 pranaysreeram

There was already a similar issue and MR. But they were closed. I guess due to missing cli integration. Maybe you could also include some tests like done previously (see #3302 and #3303)

mpas97 avatar Nov 04 '25 05:11 mpas97

/cc @pranaysreeram

derailed avatar Nov 06 '25 23:11 derailed

/cc @pranaysreeram

@derailed @mpas97 Let me know if anything else needed!

pranaysreeram avatar Nov 13 '25 20:11 pranaysreeram