Skip to content

Commit

Permalink
Wait for the postgres pod to enter the ready state before starting co…
Browse files Browse the repository at this point in the history
…ntainers
  • Loading branch information
rooftopcellist committed Apr 5, 2022
1 parent 5f76d49 commit 30036f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/installer/tasks/database_configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
until:
- "postgres_pod['resources'] | length"
- "postgres_pod['resources'][0]['status']['phase'] == 'Running'"
- "postgres_pod['resources'][0]['status']['containerStatuses'][0]['ready'] == true"
delay: 5
retries: 60
when: pg_config['resources'][0]['data']['type'] | default('') | b64decode == 'managed'
Expand Down

0 comments on commit 30036f0

Please sign in to comment.