{"repo":"mirceanton/kubectl-switch","free":true,"listed":false,"github":"https://github.com/mirceanton/kubectl-switch","clone":"git clone https://github.com/mirceanton/kubectl-switch.git","description":"A simple tool to help manage multiple kubeconfig files","language":"Go","stars":59,"topics":["cli","cli-app","kubernetes","kubernetes-context","kubernetes-cluster","kubectl","kubectl-plugins","kubectl-plugin","kubectl-command"],"license":"MIT","category":"cli-tools","readme_excerpt":"kubectl-switch kubectl-switch is a command-line tool for managing and switching between multiple Kubernetes configuration files located in the same directory. It simplifies the process of selecting a Kubernetes context from multiple kubeconfig files and updating the active configuration or namespace. Just dump all your kubeconfigs into a single dir and let kubectl-switch manage them for you! Features - Multiple kubeconfig files : Manage multiple kubeconfig files in a single directory without merging them - Context & namespace switching : Switch between contexts and namespaces from multiple config files - Interactive & non-interactive modes : Select from a list or specify directly as an argument (with tab completion support!) Why kubectl-switch ? kubectl-switch is an alternative to tools like kubectx , kubens and kubie . It has been created because I feel all of those fall short in certain regards: - kubectx and kubens assume all your contexts are defined in a single config file. Yes, there is some hackery you can do to your KUBECONFIG environment variable to make it work with multiple files, but it is (in my opinion) a sub-par workflow and I never really liked it - kubie spawns a new shell when you use it to change contexts, making it practically impossible to integrate into scripts or taskfile automation. Also I consider it to be too complicated of a solution for what is fundamentally a really simple problem What I wanted was something very simple conceptually: I just want t","default_branch":null,"files":null,"tree":[],"storefront":"/r/mirceanton","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mirceanton/kubectl-switch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}