Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

[feat:] Adding init command #65

Merged
merged 26 commits into from
Dec 10, 2020
Merged

[feat:] Adding init command #65

merged 26 commits into from
Dec 10, 2020

Conversation

alfsuse
Copy link
Contributor

@alfsuse alfsuse commented Nov 17, 2020

Adding an "init" command to check and deploy the K3s or Kind cluster to use with k3ai

k3ai-cli init

Should drive you through an interactive UI that :

  1. Check if KUBECONFIG is configure
  2. Check if K3s is installed
  3. Offer a selection of local cluster installations (k3s, kind,...k0s is not implemented)
  4. Based on selection check if you are on Windows or Linux and based on result install (WSL support)

@alfsuse alfsuse added ena New feature or request area/core labels Nov 17, 2020
@alfsuse alfsuse added this to the version v0.0.2 milestone Nov 17, 2020
@alfsuse alfsuse requested a review from Gsantomaggio November 17, 2020 16:20
@alfsuse alfsuse self-assigned this Nov 17, 2020
alfsuse and others added 8 commits November 17, 2020 17:32
@codecov-io
Copy link

codecov-io commented Nov 18, 2020

Codecov Report

Merging #65 (2cbe18d) into main (17d240e) will increase coverage by 0.70%.
The diff coverage is 53.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
+ Coverage   46.78%   47.49%   +0.70%     
==========================================
  Files          11       12       +1     
  Lines         233      259      +26     
==========================================
+ Hits          109      123      +14     
- Misses         98      109      +11     
- Partials       26       27       +1     
Impacted Files Coverage Δ
cmd/tools/cli/init.go 52.00% <52.00%> (ø)
cmd/tools/cli/cli.go 72.72% <100.00%> (+1.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17d240e...2cbe18d. Read the comment docs.

@alfsuse
Copy link
Contributor Author

alfsuse commented Nov 23, 2020

@Gsantomaggio I've added the macOS support for Kind but since I do not have a mac could you please check if everything works as expected?

Added UI to all the menus and fixed the various error management
@alfsuse
Copy link
Contributor Author

alfsuse commented Nov 24, 2020

Added UI to the setup
k3ai-civo

@alfsuse
Copy link
Contributor Author

alfsuse commented Dec 4, 2020

k3ai-cli init <-- Install from $HOME/.k3ai/config.yaml if dir do not exist should create it, if file do not exist will be downloaded from repo
k3ai-cli init --config /home/user/myconfig.yaml <-- install from a custom config

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants