Merge branch 'master' of github.com:HariSekhon/DevOps-Bash-tools

pull/16/head
Hari Sekhon 2 years ago
commit e3b5616b4d

@ -52,8 +52,11 @@ helm_repos="$(helm repo list -o yaml | yq -r '.[].url' || :)"
"$srcdir/kustomize_parse_helm_charts.sh" "$@" |
while read -r repo_url name version values_file; do
if ! grep -Fxq "$repo_url" <<< "$helm_repos"; then
timestamp "Adding Helm repo '$repo_url' as name '$name'"
# might fail here if you've already installed a repo with this name, in which case, fix your repos, we don't want to remove/modify your existing repos
helm repo add "$name" "$repo_url"
fi
timestamp "Installing Helm chart '$name' version '$version' from '$repo_url'"
helm install "$name" "$name/$name" --version "$version" --create-namespace --namespace "$name" ${values_file:+--values "$values_file"}
echo
done

Loading…
Cancel
Save