Remove woodpecker module and fix branch protection dependency #10

Merged
benvin merged 1 commits from benvin/remove-woodpecker-module into main 2026-06-12 22:34:58 +10:00
Owner

Summary

  • Remove woodpecker_repository module and Woodpecker provider — repos are managed outside Terraform
  • Use removed block with destroy = false to cleanly drop 10 woodpecker state entries without destroying
  • Add module.team to branch_protection depends_on to prevent race where branch protection references a team that hasn't been created yet
  • Add lifecycle { ignore_changes = [permission] } to team resource to work around provider bug where Gitea API returns none but the provider rejects it on write

Test plan

  • make plan shows 0 to add, 0 to change, 0 to destroy, 10 to forget
  • make apply succeeds and drops woodpecker state entries
  • Subsequent make plan shows no changes (after removing the removed block and woodpecker provider in a follow-up)
## Summary - Remove `woodpecker_repository` module and Woodpecker provider — repos are managed outside Terraform - Use `removed` block with `destroy = false` to cleanly drop 10 woodpecker state entries without destroying - Add `module.team` to `branch_protection` `depends_on` to prevent race where branch protection references a team that hasn't been created yet - Add `lifecycle { ignore_changes = [permission] }` to team resource to work around provider bug where Gitea API returns `none` but the provider rejects it on write ## Test plan - [x] `make plan` shows 0 to add, 0 to change, 0 to destroy, 10 to forget - [ ] `make apply` succeeds and drops woodpecker state entries - [ ] Subsequent `make plan` shows no changes (after removing the `removed` block and woodpecker provider in a follow-up)
unkinben added 1 commit 2026-06-12 22:27:07 +10:00
Remove woodpecker module and fix branch protection dependency
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
85583a02ad
- Remove woodpecker_repository module and provider (repos managed outside TF)
- Add removed block with destroy=false to drop state without destroying
- Add module.team to branch_protection depends_on to prevent race condition
- Add lifecycle ignore_changes for team permission (provider bug: API returns
  "none" but rejects it on write)
benvin merged commit af26cee479 into main 2026-06-12 22:34:58 +10:00
benvin deleted branch benvin/remove-woodpecker-module 2026-06-12 22:34:58 +10:00
Sign in to join this conversation.