Interview Prep/Git & GitHub/Branching and workflow design

How do you manage infrastructure-as-code repositories differently from application repos?

IntermediateProductionBranching and workflow design
Answer

Terraform and Kubernetes repos are reviewed by plan output, not just by diff. We run terraform plan on every PR and post it as a comment, require code owner approval from SRE, apply only from main through a pipeline with OIDC credentials, and protect state. Environments live in directories (not long-lived branches) so promotion is a visible diff between folders.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching and workflow design