aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/helm/plugins/deploy
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2018-10-24 19:25:44 -0400
committerMike Elliott <mike.elliott@amdocs.com>2018-10-24 19:26:49 -0400
commitae927a36d44881caff843c5942a92199f5d702b1 (patch)
tree11abd74cee210aeb22482d1f5bf673b76c33113f /kubernetes/helm/plugins/deploy
parent4d5a96331a9ca22b152bf20c121a572c8235fe69 (diff)
Deploy plugin fix
There was an issue were the last subchart may not get deployed. Change-Id: Ifca7d4fc2bce6b5c56bf683feaac1286b9706297 Issue-ID: OOM-1478 Signed-off-by: Mike Elliott <mike.elliott@amdocs.com>
Diffstat (limited to 'kubernetes/helm/plugins/deploy')
-rwxr-xr-xkubernetes/helm/plugins/deploy/deploy.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/kubernetes/helm/plugins/deploy/deploy.sh b/kubernetes/helm/plugins/deploy/deploy.sh
index 938c651a97..9195f161f6 100755
--- a/kubernetes/helm/plugins/deploy/deploy.sh
+++ b/kubernetes/helm/plugins/deploy/deploy.sh
@@ -55,8 +55,13 @@ generate_overrides() {
else
SUBCHART_DIR="$CACHE_SUBCHART_DIR/$(cut -d':' -f1 <<<"$START")"
if [[ -d "$SUBCHART_DIR" ]]; then
- cat $COMPUTED_OVERRIDES | sed -n '/^'"$START"'/,/^'"$END"'/p' \
- | sed '1d;$d' | cut -c3- > $SUBCHART_DIR/subchart-overrides.yaml
+ if [[ -z "$END" ]]; then
+ cat $COMPUTED_OVERRIDES | sed -n '/^'"$START"'/,/'"$END"'/p' \
+ | sed '1d;$d' | cut -c3- > $SUBCHART_DIR/subchart-overrides.yaml
+ else
+ cat $COMPUTED_OVERRIDES | sed -n '/^'"$START"'/,/^'"$END"'/p' \
+ | sed '1d;$d' | cut -c3- > $SUBCHART_DIR/subchart-overrides.yaml
+ fi
fi
fi
done