timfeirg / lain-cli

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

feat: 集群配置增加对 registry 访问的定制能力 #39

Open hongqn opened 2 years ago

hongqn commented 2 years ago

增加这些定制功能后,可以通过配置让集群支持 AWS ECR 作为 regisry.

timfeirg commented 2 years ago

我将会追加以下改动:

hongqn commented 2 years ago

ECR 的主要区别在于:

  1. access token 有有效期,过期了就需要用命令再次获取
  2. registry api 的 token type 是 Basic 而非 Bearer
  3. tag list 获取的 n 参数过大会报错