From: Sylvain Desbureaux Date: Fri, 19 Feb 2021 16:31:39 +0000 (+0000) Subject: Merge "[GENERAL] Fix failed chart list reporting in deploy plugin" X-Git-Tag: 8.0.0~112 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=3810da9aad2c7e0dbabb149a6f202cecf11d0d6c;hp=69e8c90cb3c8171d397319b4339b3ce79da07b9c;p=oom.git Merge "[GENERAL] Fix failed chart list reporting in deploy plugin" --- diff --git a/kubernetes/helm/plugins/deploy/deploy.sh b/kubernetes/helm/plugins/deploy/deploy.sh index 40338b9485..3bcb404032 100755 --- a/kubernetes/helm/plugins/deploy/deploy.sh +++ b/kubernetes/helm/plugins/deploy/deploy.sh @@ -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