Fix deploy on failure of subproject 87/96887/1
authorMike Elliott <mike.elliott@amdocs.com>
Thu, 10 Oct 2019 14:56:22 +0000 (10:56 -0400)
committerMike Elliott <mike.elliott@amdocs.com>
Thu, 10 Oct 2019 15:40:51 +0000 (15:40 +0000)
Issue-ID: OOM-2114
Signed-off-by: Mike Elliott <mike.elliott@amdocs.com>
Change-Id: I8fd18f0e58cc680000a46299c8997e51b1f2dc8e

kubernetes/helm/plugins/deploy/deploy.sh

index 1622689..3da189b 100755 (executable)
@@ -140,13 +140,12 @@ deploy() {
   # actual upgrade/install of parent and subcharts.
   DEPLOY_FLAGS=$(resolve_deploy_flags "$FLAGS")
 
- # determine if upgrading individual subchart or entire parent + subcharts
 # determine if upgrading individual subchart or entire parent + subcharts
   SUBCHART_RELEASE="$(cut -d'-' -f2 <<<"$RELEASE")"
-  if [[ ! -d "$CACHE_SUBCHART_DIR/$SUBCHART_RELEASE" ]]; then
+  # update specified subchart without parent
+  RELEASE="$(cut -d'-' -f1 <<<"$RELEASE")"
+  if [[ $SUBCHART_RELEASE == $RELEASE ]]; then
     SUBCHART_RELEASE=
-  else
-    # update specified subchart without parent
-    RELEASE="$(cut -d'-' -f1 <<<"$RELEASE")"
   fi
 
   # clear previously cached charts