Skip to content

Commit

Permalink
Fix inconsistent final plan when labels are added to resources (#7923) (
Browse files Browse the repository at this point in the history
#14594)

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored May 12, 2023
1 parent 4cebdda commit ff069d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changelog/7923.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```release-note:bug
storage: fixed inconsistent final plan when labels are added to `google_storage_bucket`
```
```release-note:bug
dataflow: fixed inconsistent final plan when labels are added to `google_dataflow_job`
```
1 change: 1 addition & 0 deletions google/resource_dataflow_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func ResourceDataflowJob() *schema.Resource {
"labels": {
Type: schema.TypeMap,
Optional: true,
Computed: true,
DiffSuppressFunc: resourceDataflowJobLabelDiffSuppress,
Description: `User labels to be specified for the job. Keys and values should follow the restrictions specified in the labeling restrictions page. NOTE: Google-provided Dataflow templates often provide default labels that begin with goog-dataflow-provided. Unless explicitly set in config, these labels will be ignored to prevent diffs on re-apply.`,
},
Expand Down
1 change: 1 addition & 0 deletions google/resource_storage_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func ResourceStorageBucket() *schema.Resource {
"labels": {
Type: schema.TypeMap,
Optional: true,
Computed: true,
// GCP (Dataplex) automatically adds labels
DiffSuppressFunc: resourceDataplexLabelDiffSuppress,
Elem: &schema.Schema{Type: schema.TypeString},
Expand Down

0 comments on commit ff069d0

Please sign in to comment.