commit 585a75acf3a860434229356c329a9837a9d88031 Author: Roman Gorshunov Date: Thu Oct 1 15:41:12 2020 +0000 Fix shell syntax causing gates to silently fail Fix shell syntax causing gates to silently fail with error ./tools/deployment/35_deploy_workload.sh: line 33: 404: command not found Change-Id: Id49dde7e7c50f6596359e5ec7b6643401797ac9a diff --git a/tools/deployment/35_deploy_workload.sh b/tools/deployment/35_deploy_workload.sh index fd73a09..7348683 100755 --- a/tools/deployment/35_deploy_workload.sh +++ b/tools/deployment/35_deploy_workload.sh @@ -30,7 +30,7 @@ echo "Waiting $TIMEOUT for HelmReleases to become ready." kubectl --timeout $TIMEOUT --kubeconfig $KUBECONFIG --context $KUBECONFIG_TARGET_CONTEXT wait hr --for condition=released --all --all-namespaces echo "Ensure we can reach ingress controller default backend" -if "404" != "$(curl --head --write-out '%{http_code}' --silent --output /dev/null $TARGET_IP:$TARGET_PORT/should-404)"; then +if [ "404" != "$(curl --head --write-out '%{http_code}' --silent --output /dev/null $TARGET_IP:$TARGET_PORT/should-404)" ]; then echo -e "\nFailed to reach ingress controller default backend." exit 1 fi