Skip to content

[feature] Support "--all-namespaces" kubectl flag #151

Description

@trueneu

Hi!

"--all-namespaces" is a rather useful flag for resources discovery, for example, if one needs to peek at a configmap in a different namespace before creating it for the workload one. This functionality is present in the TUI app for kubernetes, k9s.

I'm working on implementation for it, adding a special value ("ALL") to kubel--get-namespace call, and binding kubel-namespace in every namespace-specific function to whatever namespace is currently under cursor. kubel--populate-list gets a bit of a special treatment, as it's the only function that will possible append "--all-namespaces" to kubectl call.

Please tell me if this sounds reasonable; if it does, I'll push the PR as soon as I test it works.

P.S. @abrochard thank you so much for this package -- out of all others I tried, this gets the closest to be a k8s interface useable to admin large and complex setups!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions