Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 633 Bytes

upgrading_CAR_dev_image.md

File metadata and controls

13 lines (9 loc) · 633 Bytes

When developing CAR service we often modify Postgres and Hasura schemas of CAR data. That means that a fresh CAR image installed on top of existing Postgres data will often cause unpredictable issues and errors. To avoid that please reset CAR data every time when adopting fresh CAR image. The following bash code is a correct way of resetting CAR data after adopting fresh CAR image:

PODNAME=`kubectl get pods --selector=name=car --output=jsonpath={.items..metadata.name} | python -c "import sys; print sys.stdin.read().split(' ')[0]";`
oc exec -it $PODNAME -- node build/app.js -c resetPostgres
oc delete po -lname=car