Improving images_from_charts to find etcd-cluster images
Change-Id: I13a76437ebfbd7e4d6ff7e8809767147ea5a0efb
diff --git a/developer/images_from_charts.sh b/developer/images_from_charts.sh
index 66e7bb2..3c43d80 100755
--- a/developer/images_from_charts.sh
+++ b/developer/images_from_charts.sh
@@ -30,7 +30,8 @@
output=""
for chart in "$@";
do
- if [ "${chart}" = "etcd-cluster" ]; then
+
+ if [[ "${chart}" =~ "etcd-cluster" ]]; then
# shellcheck disable=SC1117
output+=$(helm template "${chart}" | grep "busyboxImage:\|version:\|repository:" | sed 's/busyboxImage://g' | sed 's/version://g'| sed 's/repository://g' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | tr -d \" | awk '(NR%2){print$0p}{p=":"$0}')
# shellcheck disable=SC1117