Merge "[GENERAL] Fix failed chart list reporting in deploy plugin"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 19 Feb 2021 16:31:39 +0000 (16:31 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 19 Feb 2021 16:31:39 +0000 (16:31 +0000)
kubernetes/helm/plugins/deploy/deploy.sh

index 40338b9..3bcb404 100755 (executable)
@@ -266,7 +266,11 @@ deploy() {
   done
 
   # report on success/failures of installs/upgrades
-  helm ls | grep FAILED | grep $RELEASE
+  if [[ $HELM_VER == "v3."* ]]; then
+    helm ls --all-namespaces | grep -i FAILED | grep $RELEASE
+  else
+    helm ls | grep FAILED | grep $RELEASE
+  fi
 }
 HELM_VER=$(helm version --template "{{.Version}}")
 echo $HELM_VER