Skip to content

Commit

Permalink
Add state upgrader to DCL resource google_dataproc_workflow_template …
Browse files Browse the repository at this point in the history
…(#9432) (#6634)

[upstream:2c9c29c7d4d0bf036b2209784d98d764e3f1d1a2]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Nov 13, 2023
1 parent 8ea99e8 commit ae41536
Show file tree
Hide file tree
Showing 4 changed files with 2,150 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/9432.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
dataproc: backfilled the field `terraform_labels` for resource `google_dataproc_workflow_template`, so the resource recreation will not happen during the provider upgrade from `4.x` to `5.7`
```
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ func ResourceDataprocWorkflowTemplate() *schema.Resource {
tpgresource.DefaultProviderProject,
tpgresource.SetLabelsDiff,
),
SchemaVersion: 1,
StateUpgraders: []schema.StateUpgrader{
{
Type: resourceDataprocWorkflowTemplateResourceV0().CoreConfigSchema().ImpliedType(),
Upgrade: ResourceDataprocWorkflowTemplateUpgradeV0,
Version: 0,
},
},

Schema: map[string]*schema.Schema{
"jobs": {
Expand Down
Loading

0 comments on commit ae41536

Please sign in to comment.