kw_kind

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 2 Imported by: 0

README

KubeSwitcher Plugin: Kind

This is a plugin for the kubeswitcher tool that allows to switch between clusters created via kind.

Installation

Homebrew
brew tap diaphteiros/kubeswitcher
brew install kw_kind
Manual Build

Clone the repository (including the submodule) and run

task install

[!NOTE] This project uses task instead of make.

Configuration

The plugin takes a small configuration in the kubeswitcher config. It can be completely defaulted, if missing.

<...>
- name: kind # under which kw subcommand this plugin will be reachable
  short: "Switch to kind clusters" # short message for display in 'kw --help'
  binary: kw_kind # name of or path to the plugin binary
  config:
    binary: kind # path to the kind binary (has to be in $PATH if specified without any path separators) (optional, defaults to 'kind')

Usage

Examples (assuming the plugin was registered with name kind):

  • kw kind foo
    • Sets the kubeconfig to target the kind cluster with name foo. No-op, if this cluster is already targeted.
  • kw kind foo --reload
    • Sets the kubeconfig to target the kind cluster with name foo. Reloads the kubeconfig even if 'foo' is already targeted.
  • kw kind --reload
    • Reloads the kubeconfig for the currently targeted kind cluster.
    • Fails if the current kubeconfig was not set via kw kind.
  • kw kind
    • Prompts the user to choose one of the existing kind clusters.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
hack
cmdref command
pkg
version
Do not modify this file directly, as it is auto-generated.
Do not modify this file directly, as it is auto-generated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL