diff --git a/kustomize/components/mirror/mirror.deployment.yaml b/kustomize/components/mirror/mirror.deployment.yaml index daa194ea8..c76aed2f5 100644 --- a/kustomize/components/mirror/mirror.deployment.yaml +++ b/kustomize/components/mirror/mirror.deployment.yaml @@ -53,9 +53,9 @@ spec: - name: quay-mirror-init image: quay.io/projectquay/quay:latest command: - - /bin/sh - - -c - - curl $QUAY_APP_SERVICE_HOST --connect-timeout 360 + - sh + - -c + - python -c "import os, requests, sys; host = os.getenv(\"QUAY_APP_SERVICE_HOST\"); sys.exit(0) if requests.get(\"http://\"+host) else sys.exit(1);" env: - name: QUAY_APP_SERVICE_HOST value: $(QUAY_APP_SERVICE_HOST)