Simplify helm update script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user