Skip to content

Commit

Permalink
fix: fix plugin when version mismatch
Browse files Browse the repository at this point in the history
Signed-off-by: arkbriar <[email protected]>
  • Loading branch information
arkbriar committed Aug 7, 2023
1 parent 991faee commit 5d92fcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/risingwave/risingwave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ function pause() {
fi

$HELM_BIN upgrade "$HELM_RELEASE" "$HELM_CHART" \
--version "$HELM_RELEASE_CHART_VERSION" \
--namespace "$HELM_NAMESPACE" \
--reuse-values \
--values "$SCRIPT_DIR/pause.values.yaml" \
Expand Down Expand Up @@ -131,6 +132,7 @@ function upgrade() {
fi

$HELM_BIN upgrade "$HELM_RELEASE" "$HELM_CHART" \
--version "$HELM_RELEASE_CHART_VERSION" \
--namespace "$HELM_NAMESPACE" \
--reuse-values \
--set image.tag="$HELM_RELEASE_APP_VERSION" \
Expand Down Expand Up @@ -187,6 +189,8 @@ if [[ "$HELM_RELEASE_CHART" != risingwave-* ]]; then
exit 1
fi

export HELM_RELEASE_CHART_VERSION=$(echo "$HELM_RELEASE_CHART" | cut -d'-' -f2)

# Check release is deployed
if [[ "$HELM_RELEASE_STATUS" != deployed ]]; then
echo "Release $HELM_RELEASE is not deployed." 1>&2
Expand Down

0 comments on commit 5d92fcd

Please sign in to comment.