Skip to content

Commit

Permalink
Fixed sweeping of incidentally-created queues (#12529)
Browse files Browse the repository at this point in the history
  • Loading branch information
melinath authored Dec 10, 2024
1 parent 53b92af commit 5c620d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mmv1/third_party/terraform/sweeper/gcp_sweeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ var testResourcePrefixes = []string{
// include a "-" or "_" respectively, and they are the preferred prefix for our test resources to use
"tf-test",
"tf_test",
// Resource-specific prefixes that should be moved to the corresponding resource sweeper as part of https://github.com/hashicorp/terraform-provider-google/issues/20638
"tfgen",
"gke-us-central1-tf", // composer-created disks which are abandoned by design (https://cloud.google.com/composer/pricing)
"gcs-bucket-tf-test-", // https://github.com/hashicorp/terraform-provider-google/issues/8909
"df-", // https://github.com/hashicorp/terraform-provider-google/issues/8909
"resourcegroup-", // https://github.com/hashicorp/terraform-provider-google/issues/8924
"cluster-", // https://github.com/hashicorp/terraform-provider-google/issues/8924
"k8s-fw-", // firewall rules are getting created and not cleaned up by k8 resources using this prefix
"ext-tf-test", // Cloud Tasks Queues created automatically by tests for `google_firebase_extensions_instance`.
}

// SharedConfigForRegion returns a common config setup needed for the sweeper
Expand Down

0 comments on commit 5c620d6

Please sign in to comment.