From ae927a36d44881caff843c5942a92199f5d702b1 Mon Sep 17 00:00:00 2001 From: Mike Elliott Date: Wed, 24 Oct 2018 19:25:44 -0400 Subject: 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 --- kubernetes/helm/plugins/deploy/deploy.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'kubernetes') 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 -- cgit 1.2.3-korg