Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No feedback when kubectl fails to install #19

Open
gabegorelick opened this issue Dec 9, 2021 · 2 comments
Open

No feedback when kubectl fails to install #19

gabegorelick opened this issue Dec 9, 2021 · 2 comments

Comments

@gabegorelick
Copy link

If you attempt to install a version of kubectl that doesn't exist, e.g. because you didn't include the point release number, then asdf silently exits with error code 1. Outputting an error message would be nice so that the user is informed that it didn't actually succeed.

$ asdf install kubectl 1.22
Downloading kubectl from https://storage.googleapis.com/kubernetes-release/release/v1.22/bin/darwin/amd64/kubectl
$ echo $?
1
@Quezion
Copy link

Quezion commented Jan 10, 2022

Was about to open a bug report in the asdf main repo but found this thread. Included report below.


I'm trying to troubleshoot why Kubectl plugin is "installing" but not appearing on m1. I'm not familiar with ASDF and don't know what the normal "success" prompts look like or where these installs should even go.

I found the error in this case -- there's no actual binary at arm64 here. Assumedly never was, as ARM is probably only on latest branches. https://storage.googleapis.com/kubernetes-release/release/v1.8.16/bin/darwin/arm64/kubectl


@danieldides
Copy link
Contributor

@Quezion I haven't fixed the error reporting but I did implement a "workaround" in this pr: #20

onmomo added a commit to onmomo/asdf-kubectl that referenced this issue Aug 17, 2022
onmomo added a commit to onmomo/asdf-kubectl that referenced this issue Aug 17, 2022
DustinChaloupka added a commit that referenced this issue Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants