k9s icon indicating copy to clipboard operation
k9s copied to clipboard

edit namespace shows in editor all namespaces as items

Open WZHGAHO opened this issue 1 month ago • 7 comments




Describe the bug When I edit namespace by pressing , the editor opens a yaml with items listing all the namespaces, and not just a yaml with the namespace manifest.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'namespaces all view
  2. Click on any namespace, select it
  3. press
  4. See error

Historical Documents When applicable please include any supporting artifacts: k9s debug logs, configurations, resource manifests, ...

Expected behavior Just the normal namespace is edited.

Versions (please complete the following information):

  • OS: macOS Sequoia 15.7.1
  • K9s: v0.50.16
  • K8s: 1.32.6

Additional context Add any other context about the problem here.

WZHGAHO avatar Oct 27 '25 10:10 WZHGAHO

I can confirm this issue:

Describe the bug When I edit a namespace by pressing e, the editor opens all the namespaces, and not just the selected namespace.

To Reproduce Steps to reproduce the behavior:

  1. Go to namespaces view
  2. Select a namespace (not all)
  3. press e
  4. The editor opens all namespaces

Expected behavior Just edit of the selected namespace is expected.

Versions (please complete the following information):

  • OS: Ubuntu LTS 24.04
  • K9s: v0.50.16
  • K8s: 1.33.5

hcnp avatar Oct 28 '25 14:10 hcnp

Can also confirm: OS: Arch Linux

k9s version
 ____  __ ________       
|    |/  /   __   \______
|       /\____    /  ___/
|    \   \  /    /\___  \
|____|\__ \/____//____  /
         \/           \/ 

Version:    0.50.16
Commit:     3c37ca21
Date:       NOTSET

pvlkov avatar Oct 31 '25 11:10 pvlkov

This line is setting namespace name to an empty string for the edit command.

pvlkov avatar Oct 31 '25 12:10 pvlkov

I downgraded, and in v0.50.15 it is still working. So it got broken in v0.50.16.

WZHGAHO avatar Nov 06 '25 07:11 WZHGAHO

Yes it got broken by v0.50.16 release by this change here https://github.com/derailed/k9s/commit/3c37ca2197ca48591566d1f599b7b3a50d54a408#diff-9b6c64198928320b5a8b25c98fdbfd217d0682a921e654c18e232c162bb58afdR523

pvlkov avatar Nov 06 '25 09:11 pvlkov

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

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

/unstale

hcnp avatar Dec 08 '25 09:12 hcnp