Skip to content

Commit

Permalink
Force delete for CodeRepositoryIndex nested resource removal
Browse files Browse the repository at this point in the history
  • Loading branch information
JumiDeluxe committed Dec 19, 2024
1 parent dd34343 commit 9b9dfd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mmv1/products/gemini/CodeRepositoryIndex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ async:
result:
resource_inside_response: true
include_project: false
custom_code:
pre_delete: templates/terraform/pre_delete/code_repository_index_force_delete.go.tmpl
error_retry_predicates:
- 'transport_tpg.IsCodeRepositoryIndexUnreadyError'
- 'transport_tpg.IsRepositoryGroupQueueError'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{- if ne $.TargetVersionName "ga" -}}
obj = make(map[string]interface{})
obj["force"] = true
{{- end }}

0 comments on commit 9b9dfd2

Please sign in to comment.