1 Star 0 Fork 0

setzero/argoflow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
setup_repo.sh 992 Bytes
一键复制 编辑 原始数据 按行查看 历史
DavidSpek 提交于 2021-04-24 21:18 . Fix setup script for helm applications
#!/bin/bash
# set secretkey for metallb
echo "generating secret for metallb"
yq eval -i ".stringData.secretkey = \"$(openssl rand -base64 128)\"" metallb/secret.yaml
if [ -z "$1" ]
then
echo "no repo URL provided, using upstream"
else
yq e -i ".spec.source.repoURL = \"$1\"" kubeflow.yaml
for filename in ./argocd-applications/*.yaml; do
if [ $(yq e ".spec.source | has (\"helm\")" $filename) == false ]
then
yq e -i ".spec.source.repoURL = \"$1\"" $filename
fi
done
fi
if [ -z "$2" ]
then
echo "no target branch provided, using HEAD"
else
yq e -i ".spec.source.targetRevision = \"$2\"" kubeflow.yaml
for filename in ./argocd-applications/*.yaml; do
if [ $(yq e ".spec.source | has (\"helm\")" $filename) == false ]
then
yq e -i ".spec.source.targetRevision = \"$2\"" $filename
fi
done
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/setzero/argoflow.git
git@gitee.com:setzero/argoflow.git
setzero
argoflow
argoflow
master

搜索帮助