Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions terraform-modules/concourse/app/files/config/credhub/credhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,23 @@ spec:
#@overlay/match missing_ok=True
#@overlay/merge
initContainers:
- name: wait-for-uaa
image: curlimages/curl:latest
command:
- sh
- -c
- |
MAX_RETRIES=35
for i in $(seq 1 $MAX_RETRIES); do
if curl -f -s --connect-timeout 3 --max-time 5 http://uaa.concourse.svc.cluster.local:8080/healthz > /dev/null; then
echo "UAA is ready!"
exit 0
fi
echo "Waiting for UAA... (attempt $i/$MAX_RETRIES)"
sleep 5
done
echo "ERROR: Timeout waiting for UAA after $((MAX_RETRIES * 5)) seconds. UAA is not ready!"
exit 1
- name: fix-secrets
image: linuxserver/yq:amd64-latest
command:
Expand Down