bcgov / cas-pipeline

A collection of make functions used to compose pipelines
Apache License 2.0
0 stars 0 forks source link

feat: add Terraform workspace support to chart #92

Closed joshgamache closed 8 months ago

joshgamache commented 8 months ago

Supports this update to cas-metabase The initial configuration of the Terraform chart worked was set up to only handle 1 GitHub repo/Helm job per namespace. This became an issue with cas-metabase, which runs within cas-ggircs's namespaces. As they were set up, each of these would want to destroy the other's objects within state each time they were run. To alleviate this, the chart now supports an optional terraform.workspace value parameter, which will create/use a workspace within the same state, preventing overwrites. This allows both projects to utilize the same configuration (ie. gcs.tfbackend), credentials (from GCP), secrets and similar shared pieces.

Changes 🚧