Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix kubectl binary version check #510

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

jim-docker
Copy link
Contributor

Replaced the code which tested the eTag header with code that runs the existing binary and gets its version. Did not modify the similar code in download_kubectl.ts (used for the download:kubectl yarn target) because this downloader is hard-coded to use the google site for kubernetes, for which the eTag currently corresponds to the md5sum. Also, this downloader pulls binaries for the various platforms. Only the binary native to the build system can be easily run.

Tested on MacOS (docker desktop, kind), and Linux (microk8s, minikube, and conjure, using the Chinese (azure) mirror for downloading the binaries)

fixes #395

Signed-off-by: Jim Ehrismann jehrismann@mirantis.com

…on instead of using the eTag

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
@jim-docker jim-docker requested a review from a team June 22, 2020 22:07
@jim-docker jim-docker self-assigned this Jun 22, 2020
@nevalla nevalla added the bug Something isn't working label Jun 23, 2020
@nevalla nevalla added this to the 3.5.1 milestone Jun 23, 2020
Copy link
Contributor

@nevalla nevalla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nevalla nevalla merged commit cd66a98 into lensapp:master Jun 23, 2020
nevalla pushed a commit that referenced this pull request Jun 24, 2020
…on instead of using the eTag (#510)

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
@nevalla nevalla changed the title modified Kubectl.checkBinary() to test the binary for right version Fix kubectl binary version check Jun 24, 2020
This was referenced Jun 24, 2020
@jakolehm jakolehm mentioned this pull request Jul 1, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lens downloads kubectl binary again and again
2 participants