We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f612a06 commit f34d26fCopy full SHA for f34d26f
1 file changed
testing/chainsaw/e2e/pgbackrest-restore/templates/change-parameters.yaml
@@ -26,6 +26,21 @@ spec:
26
postgres-operator.crunchydata.com/cluster=original,
27
postgres-operator.crunchydata.com/role=master
28
29
+ -
30
+ description: >
31
+ Wait for PostgreSQL to be ready
32
+ script:
33
+ skipCommandOutput: true
34
+ timeout: 2m
35
+ env:
36
+ - name: PRIMARY
37
+ value: ($primary)
38
+ content: |
39
+ until kubectl exec --namespace "${NAMESPACE}" "${PRIMARY}" \
40
+ -- psql -qAt --command 'SELECT 1' 2>/dev/null; do
41
+ sleep 1
42
+ done
43
+
44
-
45
description: >
46
Read the timestamp at which PostgreSQL last started
0 commit comments