Skip to content

Commit eac2725

Browse files
Merge pull request #5 from galal-hussein/force_helm_v2
use helmVersion in the chart spec
2 parents 561fdb6 + a753481 commit eac2725

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

entry

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ helm_update() {
2727
fi
2828

2929
if [ -z "$INSTALLED_VERSION" ] && [ -z "$STATUS" ]; then
30-
$HELM "$@" $NAME $CHART $VALUES
30+
$HELM "$@" $NAME_ARG $NAME $CHART $VALUES
3131
exit
3232
fi
3333
if [ -z "$VERSION" ] || [ "$INSTALLED_VERSION" = "$VERSION" ]; then
@@ -90,11 +90,10 @@ export HELM_HOST=127.0.0.1:44134
9090

9191
helm_v2 init --skip-refresh --client-only
9292
EXIST=$(helm_v2 ls --all "^$NAME\$" --output json | jq -r '.Releases | length')
93-
if [ "$EXIST" == "1" ]; then
93+
if [ "$EXIST" == "1" ] || [ "$HELM_VERSION" == "v2" ]; then
9494
HELM="helm_v2"
9595
NAME_ARG="--name"
9696
JQ_CMD='"\(.Releases[0].AppVersion),\(.Releases[0].Status)"'
97-
LINE="$($HELM ls --all "^$NAME\$" --output json | jq -r "$JQ_CMD")"
9897
fi
9998

10099
helm_repo_init

0 commit comments

Comments
 (0)