Skip to content

Commit 7d376d2

Browse files
committed
Dont check for version when upgrading
Fix upgrades by removing the version check for existing charts to be able to handle both scenraios: 1- version changed in the helm chart 2- only settings changed in the helm chart
1 parent b1573fe commit 7d376d2

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

entry

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ helm_update() {
3030
$HELM "$@" $NAME_ARG $NAME $CHART $VALUES
3131
exit
3232
fi
33-
if [ -z "$VERSION" ] || [ "$INSTALLED_VERSION" = "$VERSION" ]; then
34-
if [ "$STATUS" = "deployed" ]; then
35-
echo Already installed $NAME, upgrading
36-
shift 1
37-
$HELM $@ upgrade $NAME $CHART $VALUES
38-
exit
39-
fi
33+
34+
# Upgrade only if the status is already deployed
35+
if [ "$STATUS" = "deployed" ]; then
36+
echo Already installed $NAME, upgrading
37+
shift 1
38+
$HELM upgrade $NAME $CHART $VALUES
39+
exit
4040
fi
4141

4242
if [ "$STATUS" = "failed" ] || [ "$STATUS" = "deleted" ]; then

0 commit comments

Comments
 (0)