Skip to content

RFC 167: Enforce number of code host

Created by: unknwon

We count number of existing external services in the insert logic.

Part of RFC 167.

  • add a pre-create hook to licensing/enforcement that validates the current code host count based on the current tier
  • modify the ExternalServicesStore to support the wiring of a pre-create hook from enterprise
  • use the Init enterprise function to inject the pre-create hook into the ExternalServicesStore
  • add a wrapper to licensing.Info that supports per-tier value checking (e.g. MaxCodeHosts(), current code is largely binary - "do you have this license or not?")