Richman
一个管理Helmsman规范toml文件的工具。
安装
go get -u github.com/kronostechnologies/richman
# OR
go install
使用方法
更新helmsman toml文件中的图表。
# Dry-run
richman chart update cluster.toml
# Update repositories
richman chart update cluster.toml -c stable --apply
# Update charts
richman chart update cluster.toml -c stable/prometheus-operator --apply
# Update charts by app name
richman chart update cluster.toml -a prometheus-operator -a nginx-ingress --apply
在helmsman toml文件中列出应用程序的版本重写。
读取 "setString "部分的所有image.tag重写。
# Show all apps
richman apps list cluster.toml
# List a few apps
richman apps list cluster.toml -a myapp -a otherapp
APP VERSION
myapp 1.2.2
otherapp 1.1.15
为一个应用程序运行一个一次性作业
应用并附加到存储在ConfigMap中的 "工作 "模板上
richman apps run cluster.toml -a myapp -c name="myjob" -c cpu="1" -c memory="1G" -c templateparam="value"
模板参数值可在 ops configmap 中找到。它们是像{{ .cpu }}或{{ .memory }}一样的字符串,在ops configmap本身。
开发
建立和运行
git clone git@github.com:kronostechnologies/richman.git
cd richman
make
./bin/richman
运行测试
make test
构建容器镜像
make package.image
docker run -it richman:latest