Skip to content

Commit

Permalink
add force delete option for platform services
Browse files Browse the repository at this point in the history
  • Loading branch information
shorsher committed Feb 7, 2025
1 parent 8a2b715 commit 80e5aa3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kaleido/platform/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type ServiceResourceModel struct {
Filesets types.Map `tfsdk:"file_sets"`
Credsets types.Map `tfsdk:"cred_sets"`
ConnectivityJSON types.String `tfsdk:"connectivity_json"`
ForceDelete types.Bool `tfsdk:"force_delete"`
}

type ServiceAPIModel struct {
Expand Down Expand Up @@ -381,6 +382,11 @@ func (r *serviceResource) apiPath(data *ServiceResourceModel) string {
if data.ID.ValueString() != "" {
path = path + "/" + data.ID.ValueString()
}

if data.ForceDelete.ValueBool() {
path = path + "?force=true"
}

return path
}

Expand Down

0 comments on commit 80e5aa3

Please sign in to comment.