Simplify helm update script

This commit is contained in:
Jonas Juselius
2020-11-06 15:45:18 +01:00
parent 69b97020e6
commit 5caf819d77

View File

@@ -11,13 +11,9 @@ repos=(
"ingress-nginx=https://kubernetes.github.io/ingress-nginx"
)
update_helm_repos () {
for i in ${repos[@]}; do
k=$(echo "$i" | cut -d= -f1)
v=$(echo "$i" | cut -d= -f2)
helm repo add $k $v
done
helm repo update
}
IFS=";"
for i in $repos; do
set $i
helm repo add $1 $2
done
update_helm_repos