grafana / quickpizza

Pizza, pizza, pizza!
https://quickpizza.grafana.com/
Apache License 2.0
58 stars 12 forks source link

go: small refactor of http code, build pipeline #8

Closed roobre closed 1 year ago

roobre commented 1 year ago

This will be the first PR in a series that aim to give the Quickpizza application two deployment modes:

  1. A single service handling all endpoints, exactly as it is now. This will be the default mode.
  2. A new mode splitting the API into several deployments, i.e. in a microservice architecture.

The goals for 2 are:

Towards this goal, this PR adds runtime, env-var based switches to control whether certain endpoints are enabled, and tweaks the build pipeline a bit.

Subsequent PRs will further split the service and add env-var based config options so multiple services can find each other.