Try   HackMD
  1. Clone this repo:

https://github.com/bcgov/mobile-attestation-vc-controller

If you already have, fetch updates

git pull
  1. 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

  1. 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.

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
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
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.

  1. Deploy
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 -