Skip to content

Commit

Permalink
remove SetReadOnly from App schema customization
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchy committed Dec 13, 2024
1 parent 142688e commit 6fc5a49
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions internal/providers/pluginfw/products/app/resource_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,6 @@ func (a resourceApp) Metadata(ctx context.Context, req resource.MetadataRequest,
func (a resourceApp) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = tfschema.ResourceStructToSchema(ctx, apps_tf.App{}, func(cs tfschema.CustomizableSchema) tfschema.CustomizableSchema {
cs.AddPlanModifier(stringplanmodifier.RequiresReplace(), "name")
// Computed fields
for _, p := range []string{
"active_deployment",
"app_status",
"compute_status",
"create_time",
"creator",
"default_source_code_path",
"pending_deployment",
"service_principal_client_id",
"service_principal_id",
"service_principal_name",
"update_time",
"updater",
"url",
} {
cs.SetReadOnly(p)
}
exclusiveFields := []string{"job", "secret", "serving_endpoint", "sql_warehouse"}
paths := path.Expressions{}
for _, field := range exclusiveFields[1:] {
Expand Down

0 comments on commit 6fc5a49

Please sign in to comment.