Skip to content

Feature: Provide a command line argument to choose the context #251

@brycefisher

Description

@brycefisher

Problem

I have a KUBECONFIG with many different contexts that I need to change between frequently. Most of our kubernetes clients at work pin specific commands to a hardcoded context name, so I rarely think about which context is current. I keep opening cyphernetes and then realize I'm in the wrong cluster.

Proposal

Like the --namespace flag, I'd love to have an optional flag --context which allows me to specify the desired context explicitly on the commandline (like kubectl does).

If I had this flag, I'd probably then create a series of shell aliases I could use to launch cyphernetes with a given namespace and context quickly easily so using this tool felt more like the other tools I have at work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions