Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
/ averter Public archive

Redirects Canister v1 to v2

License

Notifications You must be signed in to change notification settings

cnstr/averter

Repository files navigation

Canister Averter

This service redirects Canister v1 API requests to the Canister v2 API.
It works by completing the following tasks in order:

  • Parsing query parameters and inputs
  • Fetching the data using the v2 API routes
  • Caching the data in an in-memory LRU cache
  • Rearranging the data to match the v1 API responses

Development

This project utilizes Rust and cargo.
To build the project, run cargo build and to run the project, run cargo run.

Deployment

You shouldn't really be deploying this project on your own (unless you feel like hosting this for some reason).
Deployment utilizes task and private Taskfile which contains deployment instructions.
The task deploy command will automatically trigger cnstr/ci which will:

  • Build and publish the Docker image to the tale.me registry
  • Rewrite the kubernetes/deployment.yaml file with the new image tag
  • Apply the new deployment to the cluster

Copyright (c) 2023, Aarnav Tale