Commit ce7aa2b7 authored by Oleksandr Kosse (EPAM)'s avatar Oleksandr Kosse (EPAM)
Browse files

Merge branch 'gcp-fix-k8s-pipeline' into 'master'

Add time sorting to POD var in pipeline [GONRG-2544]

See merge request !280
parents 349ca0c8 852b551d
Pipeline #49061 passed with stages
in 36 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