-
Notifications
You must be signed in to change notification settings - Fork 13
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
[BOP-643] Installation script #19
Conversation
@nwneisen Adding the unresolved conversations.
@nwneisen That is the eventual plan. The only difference wrt boundless was that this repo was not public until yesterday. We will switch to a single command once the script gets merged. |
Member
Member
I understand your concern for mkectl. Let me see if I can get the latest version for it. |
I'd say it can go in with this. I don't see a reason for two PRs. This script will be available when the PR is merged |
@sakshisharma84 The |
@ranyodh The bctl works because it is a public repository. For Mke, the link https://api.github.com/repos/mirantiscontainers/mke/releases gives 404. |
Done! |
@sakshisharma84 I would say the docs releases are going to be synced with the private mke repo's releases so you can go off of them |
Thanks @nwneisen. That sounds good. I have created (BOP-724) to track this. Until then, we can keep mkectl version as is. |
@sakshisharma84 That sounds fine to me. Thanks for creating the ticket |
@sakshisharma84 I get following error when running the script on my Mac:
Running without
I guess Mac is preventing to copy the file there (may be because kubectl already exists). Finally, if the user already have any version of |
I am thinking the script should not try to install Also, any particular reason to choose |
@ranyodh thanks for giving it a try.
The reason I overwrite kubectl because we mention in our docs that we require a minimum version 1.29.0. (mkectl setup) I can add a check if kubectl is already installed in the system.
I chose wget over curl keeping in mind that we only need to perform downloads which makes the perfect case.
If we choose to go with curl, we would still need this piece of code to make sure that curl is present on the machine. So, this won't simplify the script. |
@ranyodh I understand your point and think it does make sense to use curl as wget is not available by default on mac. |
Yes, lets just add a check. @byDimasik Is there a particular feature in
I say we let the script fail in that case. No need to check if curl exists or not. |
No specific feature, it just should match the k0s version. Or maybe not match but be not too much lower or too much higher. |
@ranyodh comment incorporated!! Please take a last(hopefully) look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This PR introduces an installation script that will install the following dependencies. The docs have also been updated on how to use the script.
The script detects the underlying OS and ARCH and installs the correct binaries on the system.
Reviewers P.S. : Currently, this script installs the default versions until specified explicitly.
When the docs go public, we can add a file that updates the latest version for mkectl.. something like k0s do. https://docs.k0sproject.io/stable.txt
Manual testing
Centos 7.9
UBUNTU 18
MAC
With k0sctl custom version