Skip to content

Commit

Permalink
fix: fix mirror init command (PROJQUAY-8187)
Browse files Browse the repository at this point in the history
- Use requests to hit Quay container in mirror init pod
  • Loading branch information
jonathankingfc authored and openshift-cherrypick-robot committed Feb 25, 2025
1 parent d3f4376 commit 741c562
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kustomize/components/mirror/mirror.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 741c562

Please sign in to comment.