timfeirg / lain-cli

DevOps with minimum effort.
https://lain-cli.readthedocs.io/en/latest/
MIT License
31 stars 9 forks source link

use asdf to manage multiple kubectl versions #19

Closed timfeirg closed 2 years ago

timfeirg commented 2 years ago

closes https://github.com/timfeirg/lain-cli/issues/11

timfeirg commented 2 years ago

大致效果如图:

image

可以看到, 仍保留了手动下载 kubectl, 更名为 /usr/local/bin/kubectl-[version] 的流程, 这是因为 windows 下没有 asdf 这一好工具, 因此需要 fallback.

codecov-commenter commented 2 years ago

Codecov Report

Merging #19 (449c0b9) into master (b03eedd) will decrease coverage by 0.37%. The diff coverage is 12.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
- Coverage   57.14%   56.76%   -0.38%     
==========================================
  Files          14       14              
  Lines        3710     3740      +30     
==========================================
+ Hits         2120     2123       +3     
- Misses       1590     1617      +27     
Impacted Files Coverage Δ
lain_cli/utils.py 70.44% <12.12%> (-1.00%) :arrow_down:

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 b03eedd...449c0b9. Read the comment docs.