Skip to content

Commit

Permalink
Merge pull request #7 from galal-hussein/remove_repo_update_check
Browse files Browse the repository at this point in the history
Remove stable repo if chart is url
  • Loading branch information
erikwilson authored Dec 23, 2019
2 parents 32cf186 + 05b931c commit f5c50bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entry
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ helm_update() {
if [ -z "$VERSION" ] || [ "$INSTALLED_VERSION" = "$VERSION" ]; then
if [ "$STATUS" = "deployed" ]; then
echo Already installed $NAME, upgrading
$HELM upgrade $NAME $CHART $VALUES
shift 1
$HELM $@ upgrade $NAME $CHART $VALUES
exit
fi
fi
Expand All @@ -56,6 +57,7 @@ helm_repo_init() {
# if the chart is url skip repo update
if grep -q -e "https\?://" <<< "$CHART"; then
echo "chart path is a url, skipping repo update"
$HELM repo remove stable || true
return
fi

Expand Down

0 comments on commit f5c50bf

Please sign in to comment.