Skip to content

Commit 2767152

Browse files
more checks and output
1 parent 7fbdb7d commit 2767152

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

testing/chainsaw/e2e/pgbackrest-restore/templates/create-cluster.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@ spec:
3434
- name: repo1
3535
volume:
3636
volumeClaimSpec: ($volume)
37+
-
38+
description: >
39+
Wait for the cluster to come online
40+
assert:
41+
resource:
42+
apiVersion: v1
43+
kind: Pod
44+
metadata:
45+
labels:
46+
postgres-operator.crunchydata.com/cluster: original
47+
postgres-operator.crunchydata.com/data: postgres
48+
status:
49+
phase: Running
50+
(containerStatuses[?name == 'database']):
51+
- name: database
52+
ready: true
3753

3854
-
3955
description: >
@@ -71,5 +87,9 @@ spec:
7187
7288
catch:
7389
- podLogs:
74-
selector: (concat('postgres-operator.crunchydata.com/cluster=', 'original'))
90+
selector: postgres-operator.crunchydata.com/cluster in (original)
7591
tail: 50
92+
- describe:
93+
apiVersion: v1
94+
kind: Pod
95+
selector: postgres-operator.crunchydata.com/cluster in (original)

0 commit comments

Comments
 (0)