edit namespace shows in editor all namespaces as items
Describe the bug
When I edit namespace by pressing
To Reproduce Steps to reproduce the behavior:
- Go to 'namespaces all view
- Click on any namespace, select it
- press
- 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.
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:
- Go to
namespacesview - Select a namespace (not all)
- press
e - 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
Can also confirm: OS: Arch Linux
k9s version
____ __ ________
| |/ / __ \______
| /\____ / ___/
| \ \ / /\___ \
|____|\__ \/____//____ /
\/ \/
Version: 0.50.16
Commit: 3c37ca21
Date: NOTSET
This line is setting namespace name to an empty string for the edit command.
I downgraded, and in v0.50.15 it is still working. So it got broken in v0.50.16.
Yes it got broken by v0.50.16 release by this change here https://github.com/derailed/k9s/commit/3c37ca2197ca48591566d1f599b7b3a50d54a408#diff-9b6c64198928320b5a8b25c98fdbfd217d0682a921e654c18e232c162bb58afdR523
This issue is stale because it has been open for 30 days with no activity.
/unstale