kubectl-switch

command module
v0.0.0-...-8e8e133 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

kubectl-switch

⚠️ This project is deprecated and will be turned into a read-only mode at the begining of October 2024. Other similar project like kuberlr now exist and are packaged with Kubernetes distributions.

In particular kuberlr offers a more flexible interface to allow listing and managing installed kubectl versions.

Usage:
  kuberlr [command]

Available Commands:
  bins        Print information about the kubectl binaries found
  completion  Generate the autocompletion script for the specified shell
  get         Download the kubectl version specified
  help        Help about any command
  version     Print version information

Flags:
  -h, --help              help for kuberlr
  -v, --verbosity Level   log level [0-5]. 0 (Only Error and Warning) to 5 (Maximum detail).

Use "kuberlr [command] --help" for more information about a command.

kubectl-switch: A wrapper over kubectl to ensure using a version that matches the server version.

Installation

From releases

Visit the latest release page of this repo and download the binary that matches your system.

From a command-line, run

curl -L -o /usr/local/bin/k https://github.com/tjamet/kubectl-switch/releases/download/v1.1/kubectl-switch-$(uname -s)-$(uname -m)
chmod +x /usr/local/bin/k

From sources

go get -u github.com/tjamet/kubectl-switch
go build -o /usr/local/bin/k github.com/tjamet/kubectl-switch

Usage

k version
k get ns

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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