Skip to content

Commit afc009c

Browse files
jmckulkcbandy
authored andcommitted
Get primary name after waiting for redeploy
1 parent bf300c7 commit afc009c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/kuttl/e2e/exporter/13--check-exporter.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ kind: TestStep
44
commands:
55
- script: |
66
set -e
7+
# Wait some time so that the instance pod is redeployed
8+
# TODO: automate this wait
9+
sleep 30
10+
711
PRIMARY=$(
812
kubectl get pod --namespace "${NAMESPACE}" \
913
--output name --selector '
1014
postgres-operator.crunchydata.com/cluster=exporter-tls,
1115
postgres-operator.crunchydata.com/role=master'
1216
)
1317
14-
# Wait some time so that the instance pod is redeployed
15-
# TODO: automate this wait
16-
sleep 30
17-
1818
{
1919
METRICS=$(kubectl exec --namespace "${NAMESPACE}" \
2020
"${PRIMARY}" -c exporter \

0 commit comments

Comments
 (0)