diff options
author | Mike Elliott <mike.elliott@amdocs.com> | 2018-10-24 19:25:44 -0400 |
---|---|---|
committer | Mike Elliott <mike.elliott@amdocs.com> | 2018-10-24 19:26:49 -0400 |
commit | ae927a36d44881caff843c5942a92199f5d702b1 (patch) | |
tree | 11abd74cee210aeb22482d1f5bf673b76c33113f /kubernetes/helm/plugins/deploy/deploy.sh | |
parent | 4d5a96331a9ca22b152bf20c121a572c8235fe69 (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/deploy.sh')
-rwxr-xr-x | kubernetes/helm/plugins/deploy/deploy.sh | 9 |
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 |