Commit bc667fce authored by Hordur Freyr Yngvason's avatar Hordur Freyr Yngvason
Browse files

chore: Only pick one pod for executing psql in test

parent e950362b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
appLabel=$1
dbLabel=$2

pod_name=$(kubectl get pod -l "app=$appLabel" -n "$KUBE_NAMESPACE" -o custom-columns=:metadata.name --no-headers)
pod_name=$(kubectl get pod -l "app=$appLabel" -n "$KUBE_NAMESPACE" --sort-by '{.metadata.creationTimestamp}' -o custom-columns=:metadata.name --no-headers | tail -n 1)

# Wait for DB pod to be ready
count=0