asdf-community / asdf-kubectl

Kubectl plugin for the asdf version manager

Home Page:https://github.com/asdf-vm/asdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asdf-kubectl

Kubectl plugin for asdf version manager

Install

asdf plugin-add kubectl https://github.com/asdf-community/asdf-kubectl.git

Use

Check out the asdf documentation for instructions on how to install and manage versions of Kubectl.

Architecture Override

The ASDF_KUBECTL_OVERWRITE_ARCH variable can be used to override the architecture that is used for determining which kubectl build to download. The primary use case is when attempting to install an older version of kubectl for use on an Apple M1 computer as kubectl was not built for ARM at the time.

Without ASDF_KUBECTL_OVERWRITE_ARCH:

% asdf install kubectl 1.18.17
Downloading kubectl from https://storage.googleapis.com/kubernetes-release/release/v1.18.17/bin/darwin/arm64/kubectl

With ASDF_KUBECTL_OVERWRITE_ARCH:

% ASDF_KUBECTL_OVERWRITE_ARCH=amd64 asdf install kubectl 1.18.17
Downloading kubectl from https://storage.googleapis.com/kubernetes-release/release/v1.18.17/bin/darwin/amd64/kubectl

About

Kubectl plugin for the asdf version manager

https://github.com/asdf-vm/asdf

License:MIT License


Languages

Language:Shell 89.6%Language:Makefile 10.4%