@@ -52,16 +52,40 @@ spec:
5252 updatedReplicas : 1
5353
5454 catch :
55+ - description : Describe the PostgresCluster to see its status
56+ describe :
57+ apiVersion : ($postgrescluster.apiVersion)
58+ kind : PostgresCluster
59+ name : ($name)
60+
61+ - description : Get all pods in the namespace to see what's running
62+ describe :
63+ apiVersion : v1
64+ kind : Pod
65+ selector : (join('', ['postgres-operator.crunchydata.com/cluster=', $name]))
66+
67+ - description : Get all jobs to check restore status
68+ describe :
69+ apiVersion : batch/v1
70+ kind : Job
71+ selector : (join('', ['postgres-operator.crunchydata.com/cluster=', $name]))
72+
73+ - description : Get events related to the cluster
74+ script :
75+ content : kubectl get events --field-selector (join('', ['involvedObject.name=', $name])) -o wide
76+
5577 - description : Read all log lines from job pods
5678 podLogs :
57- selector : >
58- batch.kubernetes.io/job-name,
59- postgres-operator.crunchydata.com/cluster in (clone-one)
79+ selector : (join('', ['batch.kubernetes.io/job-name,', 'postgres-operator.crunchydata.com/cluster=', $name]))
6080 tail : -1
6181
6282 - description : Read all log lines from postgres pods
6383 podLogs :
64- selector : >
65- postgres-operator.crunchydata.com/instance,
66- postgres-operator.crunchydata.com/cluster in (clone-one)
84+ selector : (join('', ['postgres-operator.crunchydata.com/instance,', 'postgres-operator.crunchydata.com/cluster=', $name]))
6785 tail : -1
86+
87+ - description : Check PVCs for the cluster
88+ describe :
89+ apiVersion : v1
90+ kind : PersistentVolumeClaim
91+ selector : (join('', ['postgres-operator.crunchydata.com/cluster=', $name]))
0 commit comments