-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tags field to Metstore Service for TagsR2401 #11611
base: main
Are you sure you want to change the base?
Add tags field to Metstore Service for TagsR2401 #11611
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @NickElliot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_dataproc_metastore_service" "primary" {
tags = # value needed
}
|
Tests analyticsTotal tests: 0 Click here to see the affected service packages
Tests were added that are skipped in VCR:
View the build log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pending googler erroneous cla trouble shooting see: #11555 (review)
...d_party/terraform/services/dataprocmetastore/resource_dataproc_metastore_service_test.go.erb
Outdated
Show resolved
Hide resolved
ResourceName: "google_dataproc_metastore_service.default", | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
ImportStateVerifyIgnore: []string{"tags"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably fails right now as the field service_id, location, labels and terraform_labels are also not read back. So they should also be included in this list for it to pass. Please ensure the test passes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
@@ -17,6 +18,16 @@ data "google_dataproc_metastore_service" "foo" { | |||
} | |||
``` | |||
|
|||
To create an service with a tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit : a service
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -28,6 +39,7 @@ The following arguments are supported: | |||
|
|||
* `project` - (Optional) The project in which the resource belongs. If it | |||
is not provided, the provider project is used. | |||
* `tags` - (Optional) A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored when empty. The field is immutable and causes resource replacement when mutated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: tagValues/{tag_value_id}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Discussing with @SamanthaMathews offline about this PR and the go rewrite migration |
Delete mmv1/third_party/terraform/services/dataprocmetastore/resource_dataproc_metastore_service_test.go.erb Update dataproc_metastore_service.markdown commit terraform-metastore-service-tags commit terraform-metastore-service-tags commit terraform-metastore-service-tags commit terraform-metastore-service-tags commit terraform-metastore-service-tags commit terraform-metastore-service-tags
c552973
to
e0b6aa1
Compare
Converted, backed up at https://github.com/NickElliot/magic-modules/tree/terraform-metastore-service-tags-11611-backup |
Add tags field to service resource to allow setting tags on service resources at creation time.
Part of b/365716008
Release Note Template for Downstream PRs