diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-02-19 16:31:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-02-19 16:31:39 +0000 |
commit | 3810da9aad2c7e0dbabb149a6f202cecf11d0d6c (patch) | |
tree | 904346f4a5fafc2d75f50533bc27e9c78446e35f | |
parent | 69e8c90cb3c8171d397319b4339b3ce79da07b9c (diff) | |
parent | 9c096c92d3623f5d8717efbf63e9d607369f06a8 (diff) |
Merge "[GENERAL] Fix failed chart list reporting in deploy plugin"
-rwxr-xr-x | kubernetes/helm/plugins/deploy/deploy.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |