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