docs: bless local terragrunt apply, but require committing every applied change
All checks were successful
ci/woodpecker/push/default Pipeline was successful
All checks were successful
ci/woodpecker/push/default Pipeline was successful
Viktor asked to change the infra apply guidance: instead of 'never apply locally, always rely on CI', the policy is now 'you MAY apply locally, but always commit the change to the infra repo'. - .claude/CLAUDE.md (Critical Rule: Terraform Only): new bullet making local apply explicit (scripts/tg apply / homelab tf apply) from the MAIN checkout (not a worktree — git-crypt'd tfvars read as ciphertext there), with a hard requirement that every applied change is committed + pushed to master the same session so the repo stays the source of truth and CI drift-detection doesn't revert it. Spells out the apply<->commit ordering both ways. - AGENTS.md (non-admin workstation land steps): step 5 now notes local apply as an option alongside CI auto-apply, with the same 'always committed, never applied uncommitted' rule. Note: the org-managed settings block also frames CI auto-apply but is not editable from a workstation clone. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
7b4a8ba867
commit
006f97ef58
2 changed files with 6 additions and 2 deletions
|
|
@ -273,8 +273,11 @@ To land a finished change from such a clone:
|
|||
Slack audit feed; a no-op CI apply on a docs-only commit is harmless.
|
||||
4. Leave the clone on clean `master` so auto-refresh keeps working.
|
||||
5. Tell the user in plain language what happened. Stack changes are
|
||||
auto-applied by CI — verify the live result with the user's read-only
|
||||
kubectl before saying "it's live".
|
||||
auto-applied by CI on push — or, with apply access, applied locally yourself
|
||||
(`scripts/tg apply`, from the main checkout, not a worktree); either path is
|
||||
fine, but the change must always be committed here, never applied
|
||||
uncommitted. Verify the live result with the user's read-only kubectl before
|
||||
saying "it's live".
|
||||
|
||||
If a push to `master` is rejected by branch protection (user not on the
|
||||
whitelist — e.g. new users before Viktor grants it), fall back to a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue