https://github.com/asdf-community/asdf-kubectl
Kubectl plugin for the asdf version manager [maintainer=@DustinChaloupka]
https://github.com/asdf-community/asdf-kubectl
asdf asdf-plugin
Last synced: 3 months ago
JSON representation
Kubectl plugin for the asdf version manager [maintainer=@DustinChaloupka]
- Host: GitHub
- URL: https://github.com/asdf-community/asdf-kubectl
- Owner: asdf-community
- License: mit
- Created: 2017-10-06T18:58:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T23:42:48.000Z (over 1 year ago)
- Last Synced: 2025-04-29T23:35:12.544Z (about 1 year ago)
- Topics: asdf, asdf-plugin
- Language: Shell
- Homepage: https://github.com/asdf-vm/asdf
- Size: 39.1 KB
- Stars: 127
- Watchers: 9
- Forks: 27
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# asdf-kubectl
Kubectl plugin for [asdf](https://github.com/asdf-vm/asdf) version manager
## Install
```
asdf plugin add kubectl https://github.com/asdf-community/asdf-kubectl.git
```
## Use
Check out the [asdf documentation](https://asdf-vm.com/#/core-manage-versions?id=install-version) 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.33.2
Downloading kubectl from https://storage.googleapis.com/kubernetes-release/release/v1.33.2/bin/darwin/arm64/kubectl
```
### With `ASDF_KUBECTL_OVERWRITE_ARCH`:
```
% ASDF_KUBECTL_OVERWRITE_ARCH=amd64 asdf install kubectl 1.33.2
Downloading kubectl from https://storage.googleapis.com/kubernetes-release/release/v1.33.2/bin/darwin/amd64/kubectl
```