Skip to content

Commit ca0d53f

Browse files
Add pod readiness assertion to create-cluster
1 parent 65987b5 commit ca0d53f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
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: >
@@ -74,3 +90,7 @@ spec:
7490
- podLogs:
7591
selector: postgres-operator.crunchydata.com/cluster in (original)
7692
tail: 50
93+
- describe:
94+
apiVersion: v1
95+
kind: Pod
96+
selector: postgres-operator.crunchydata.com/cluster in (original)

0 commit comments

Comments
 (0)