Get primary name after waiting for redeploy
@@ -4,6 +4,10 @@ kind: TestStep
commands:
- script: |
set -e
+ # Wait some time so that the instance pod is redeployed
+ # TODO: automate this wait
+ sleep 30
+
PRIMARY=$(
kubectl get pod --namespace "${NAMESPACE}" \
--output name --selector '
@@ -11,10 +15,6 @@ commands:
postgres-operator.crunchydata.com/role=master'
)
- # Wait some time so that the instance pod is redeployed
- # TODO: automate this wait
- sleep 30
-
{
METRICS=$(kubectl exec --namespace "${NAMESPACE}" \
"${PRIMARY}" -c exporter \
