Remove woodpecker module and fix branch protection dependency
- 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)
This commit is contained in:
@@ -10,4 +10,3 @@ branch_protection:
|
||||
- "ci/woodpecker/pr/kubeconform"
|
||||
approval_whitelist_users:
|
||||
- "unkinben"
|
||||
woodpecker: true
|
||||
|
||||
@@ -12,4 +12,3 @@ branch_protection:
|
||||
- "ci/woodpecker/pr/build"
|
||||
approval_whitelist_users:
|
||||
- "unkinben"
|
||||
woodpecker: true
|
||||
|
||||
@@ -9,4 +9,3 @@ branch_protection:
|
||||
- "unkinben"
|
||||
approval_whitelist_users:
|
||||
- "unkinben"
|
||||
woodpecker: true
|
||||
|
||||
@@ -12,4 +12,3 @@ branch_protection:
|
||||
- "forgebot"
|
||||
merge_whitelist_teams:
|
||||
- "forgebot"
|
||||
woodpecker: true
|
||||
|
||||
@@ -14,4 +14,3 @@ branch_protection:
|
||||
- "forgebot"
|
||||
merge_whitelist_teams:
|
||||
- "forgebot"
|
||||
woodpecker: true
|
||||
|
||||
@@ -12,4 +12,3 @@ branch_protection:
|
||||
- "ci/woodpecker/pr/unit-tests"
|
||||
approval_whitelist_users:
|
||||
- "unkinben"
|
||||
woodpecker: true
|
||||
|
||||
@@ -35,4 +35,3 @@ branch_protection:
|
||||
- "ci/woodpecker/pr/yamllint"
|
||||
approval_whitelist_teams:
|
||||
- "puppet"
|
||||
woodpecker: true
|
||||
|
||||
@@ -13,4 +13,3 @@ branch_protection:
|
||||
approval_whitelist_teams:
|
||||
- "puppet"
|
||||
block_on_rejected_reviews: true
|
||||
woodpecker: true
|
||||
|
||||
@@ -18,4 +18,3 @@ branch_protection:
|
||||
approval_whitelist_teams:
|
||||
- "rpmbuild"
|
||||
block_on_rejected_reviews: true
|
||||
woodpecker: true
|
||||
|
||||
@@ -16,4 +16,3 @@ branch_protection:
|
||||
- "unkinben"
|
||||
approval_whitelist_teams:
|
||||
- "Owners"
|
||||
woodpecker: true
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
description: "Manage Gitea resources, teams, repos, and Woodpecker CI via Terraform"
|
||||
private: false
|
||||
default_branch: "main"
|
||||
woodpecker: true
|
||||
branch_protection:
|
||||
- rule_name: "main"
|
||||
enable_push: false
|
||||
|
||||
@@ -6,4 +6,3 @@ branch_protection:
|
||||
enable_push: false
|
||||
approval_whitelist_teams:
|
||||
- "Owners"
|
||||
woodpecker: true
|
||||
|
||||
@@ -16,4 +16,3 @@ branch_protection:
|
||||
- "unkinben"
|
||||
approval_whitelist_teams:
|
||||
- "Owners"
|
||||
woodpecker: true
|
||||
|
||||
Reference in New Issue
Block a user