We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca0d53f commit 63c4ecbCopy full SHA for 63c4ecb
1 file changed
testing/chainsaw/e2e/pgbackrest-restore/templates/create-cluster.yaml
@@ -81,6 +81,12 @@ spec:
81
postgres-operator.crunchydata.com/role=master'
82
)
83
84
+ # Wait for PostgreSQL to be ready
85
+ until kubectl exec --namespace "${NAMESPACE}" "${PRIMARY}" \
86
+ -- psql -qAt --command 'SELECT 1' 2>/dev/null; do
87
+ sleep 1
88
+ done
89
+
90
kubectl exec --stdin --namespace "${NAMESPACE}" "${PRIMARY}" -- psql -q --file=- <<'SQL'
91
CREATE TABLESPACE barn LOCATION '/tablespaces/barn/data';
92
GRANT ALL ON TABLESPACE barn TO public;
0 commit comments