1) Clone this repo:
https://github.com/bcgov/mobile-attestation-vc-controller
If you already have, fetch updates
```console!
git pull
```
2) Download this file:
You should have the file `google_oauth_key.json` already. If you don't have it contact one of the devs (Jason or Bryce).
Confirm:
- You are in the right place
- You have the JSON file downloaded and named correctly
- You have the correct version of the repo (f501e22); don't go by the one in the image below. That is just an example.
![Screenshot 2024-04-03 at 11.36.45 AM](https://hackmd.io/_uploads/rkuJQ7iJC.png)
3) Setup
Use the existing secrets to set the values needed for deploying the update. You need `jq` installed for this to work. If needed, install it with whatever package manager you have `brew install jq` for example on macOS.
```console!
export TRACTION_TENANT_API_KEY=$(oc get secret/bcwallet-attestation-controller-traction-creds -o json| jq -r ".data.TRACTION_TENANT_API_KEY"|base64 -d)
echo $TRACTION_TENANT_API_KEY
```
```console!
export TRACTION_TENANT_ID=$(oc get secret/bcwallet-attestation-controller-traction-creds -o json| jq -r ".data.TRACTION_TENANT_ID"|base64 -d)
echo $TRACTION_TENANT_ID
```
```console!
export TRACTION_LEGACY_DID=$(oc get secret/bcwallet-attestation-controller-traction-creds -o json| jq -r ".data.TRACTION_LEGACY_DID"|base64 -d)
echo $TRACTION_LEGACY_DID
```
Make sure all the `echo` commands above print out something. If they did, you're safe to deploy the update.
4) Deploy
```console!
helm template bcwallet ./devops/charts/controller -f ./devops/charts/controller/values_prod.yaml --set-string tenant_id="$TRACTION_TENANT_ID" --set-string tenant_api_key="$TRACTION_TENANT_API_KEY" --set-string traction_legacy_did="XqaRXJt4sXE6TRpfGpVbGw" --set-file google_oauth_key.json=./google_oauth_key.json| oc apply -n e79518-prod -f -
```