k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Support for switching between OpenShift Projects

Open zkck opened this issue 2 years ago • 8 comments




Is your feature request related to a problem? Please describe. I work in a shared OpenShift cluster, and thus do not have the rights to list all namespaces in the cluster. This makes it hard to switch between my Projects (basically OpenShift namespaces), and I need to do it outside of k9s.

Describe the solution you'd like I want to be able to switch between OpenShift Projects directly within k9s, the same way as one would do for namespaces. In particular, after listing Projects and hovering over a target project I want the enter key to take me to that project and set the namespace.

Describe alternatives you've considered None considered.

Additional context Every user can list the projects that they have a reader role on. See the OpenShift docs.

zkck avatar Sep 20 '23 06:09 zkck

Hi Zak! Did you try to use :project to list all projects?

slimus avatar Sep 20 '23 13:09 slimus

Hi @slimus :) Yes, I did that and it indeed lists the projects. My desired behavior would be to then be able to set the namespace/project in that list by pressing enter on the project, similarly to how its done for namespaces. Currently it leads to the describe view, as it seems to be treated like other resources.

zkck avatar Sep 20 '23 16:09 zkck

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

github-actions[bot] avatar Sep 16 '25 02:09 github-actions[bot]

bump

FabianWilms avatar Sep 16 '25 03:09 FabianWilms

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

github-actions[bot] avatar Oct 17 '25 02:10 github-actions[bot]

bump

FabianWilms avatar Oct 17 '25 05:10 FabianWilms

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

github-actions[bot] avatar Nov 17 '25 02:11 github-actions[bot]

Can we get https://github.com/derailed/k9s/pull/2265 merged? Or feedback on how the contribution should be changed to get approved?

FabianWilms avatar Nov 18 '25 06:11 FabianWilms

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

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