Commit 852b551d authored by Mikhail Piatliou (EPAM)'s avatar Mikhail Piatliou (EPAM)
Browse files

GONRG-2544: added time sorting for POD var

parent 6faea595
Pipeline #48224 passed with stage
in 17 seconds
......@@ -51,7 +51,7 @@ osdu-gcp-deploy:
--set image.tag=gcp-community
- echo ----- Verify Deployment -----
- kubectl rollout status deployment.v1.apps/${OSDU_GCP_SERVICE}-gcp -n $OSDU_NAMESPACE --timeout=900s
- POD=$(kubectl get pod -n $OSDU_NAMESPACE | grep wellbore | awk '{print $1}')
- POD=$(kubectl get pod --sort-by=.metadata.creationTimestamp -n $OSDU_NAMESPACE | grep wellbore | tail -1 | awk '{print $1}')
- STATUS=$(kubectl wait -n $OSDU_NAMESPACE --for=condition=Ready pod/${POD} --timeout=300s)
- echo $STATUS
- if [[ "$STATUS" != *"met"* ]]; then echo "POD didn't start correctly" ; exit 1 ; fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment