fixing typo in env var
changing text so it  grep works in bash
@@ -121,6 +121,7 @@ else
{ "backend": { "service": { "name": "epinio-server", "port": { "number": 80 } } }, "path": "/exit", "pathType": "ImplementationSpecific" } }]'
fi
fi
+helm upgrade --install epinio -n epinio --version 1.6.1 --create-namespace epinio/epinio --set global.domain=172.19.0.3.omg.howdoi.website
echo "-------------------------------------"
echo "Cleanup old settings"
@@ -138,13 +139,12 @@ retry 5 1 "${EPINIO_BINARY} info"
echo "-------------------------------------"
# Check no tls-dex cert conflict issue
-
# Counting logs of undesired message
-message_dex_tls='"secret"="dex-tls" "message"="unexpected managed Secret Owner Reference field on Secret --enable-certificate-owner-ref=true"'
-check_dex_log_count=$(kubectl logs -n cert-manager -lapp=cert-manager --tail=-1 | grep ${message_dex_tls} | wc -l)
+message_dex_tls="unexpected managed Secret Owner Reference field on Secret --enable-certificate-owner-ref=true"
+check_dex_log_count="$(kubectl logs -n cert-manager -lapp=cert-manager --tail=-1 | grep "${message_dex_tls}" | wc -l)"
# Exiting with count of bad logs if more than 10 are found
-if [ $check_dex_log -gt 10 ]; then
+if [ $check_dex_log_count -gt 10 ]; then
echo
echo "-------------------------------------"
echo "Warning: 'dex-tls' secrets may be be updated many times a second."
