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
This commit is contained in:
Roman Gorshunov 2020-10-01 15:41:12 +00:00
parent 76e4d3f48c
commit 585a75acf3

View File

@ -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