Page MenuHomePhabricator

Don't repeat the SQL `initdbScripts` for each environment in sql.values.yaml.gotmpl
Closed, DuplicatePublic

Description

We currently have three different sql values yaml files that look something like this in the wbaas-deploy repo /k8s/helmfile/env/<environment>/sql.values.yaml.gotmpl

Having values like this is fine, but we are also repeating the initdbScripts section for each environment three times which sucks as they should be the same. Lets fix that.

A/C

  • Database init-script isn't copy and pasta for each environment (local, staging, production)

Useful links

Event Timeline

Looking at this closer, maybe the tf setup should just become a module, it's full-on copy-pasta on every level in the tf folder too.

Correction: there is a module, but it's only used for staging / production not local