Skip to content

Commit

Permalink
Mark labels as deprecated (#4039)
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick authored Oct 1, 2020
1 parent ca50e52 commit 49de8cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func resourceDataflowFlexTemplateJob() *schema.Resource {
Optional: true,
DiffSuppressFunc: resourceDataflowJobLabelDiffSuppress,
ForceNew: true,
// TODO add support for labels when the API supports it
Deprecated: "Deprecated until the API supports this field",
},

"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ used in the template).

* `labels` - (Optional) User labels to be specified for the job. Keys and values
should follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
page. **NOTE**: Google-provided Dataflow templates often provide default labels
page. **Note**: This field is marked as deprecated in Terraform as the API does not currently
support adding labels.
**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

0 comments on commit 49de8cd

Please sign in to comment.