-
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 Filestore Instances for TagsR2401 #11555
base: main
Are you sure you want to change the base?
Add tags field to Filestore Instances for TagsR2401 #11555
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. |
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.
Hi, looks like the CLA is having issues despite being a Googler. Could you verify you've completed all the steps at go/cla#troubleshoot? Thanks!
@GoogleCloudPlatform/terraform-team @NickElliot This PR has been waiting for review for 1 week. Please take a look! Use the label |
mmv1/third_party/terraform/services/filestore/resource_filestore_instance_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/filestore/resource_filestore_instance_test.go
Show resolved
Hide resolved
@@ -164,7 +193,7 @@ resource "google_filestore_instance" "instance" { | |||
networks { | |||
network = "default" | |||
modes = ["MODE_IPV4"] | |||
reserved_ip_range = "172.19.31.0/29" | |||
reserved_ip_range = "172.19.30.0/29" |
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.
any reason to change this?
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 was autochanged.
@SamanthaMathews please update tags in docs as well and add example usage: mmv1/third_party/terraform/website/docs/d/filestore_instance.html.markdown You can refer to https://github.com/GoogleCloudPlatform/magic-modules/pull/11440/files#diff-5199cf2c01554435c00dd630585a1315125738f420d3a1f454430ed54aa263c4 |
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.
still pending resolving erroneous CLA issue -- please verify if you've completed the steps I linked above
mmv1/third_party/terraform/website/docs/d/filestore_instance.html.markdown
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/website/docs/d/filestore_instance.html.markdown
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/website/docs/d/filestore_instance.html.markdown
Outdated
Show resolved
Hide resolved
@@ -185,8 +211,37 @@ resource "google_filestore_instance" "instance" { | |||
networks { | |||
network = "default" | |||
modes = ["MODE_IPV4"] | |||
reserved_ip_range = "172.19.31.8/29" | |||
reserved_ip_range = "172.19.31.0/29" |
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.
why this change?
resource "filestore_instnace" "my_instance" { | ||
name = "My instance" | ||
instance_id = "your-instance-id" | ||
org_id = "1234567" |
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.
org_id is not a supported field in filestore_instance. Please rectify.
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
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.
Hi, looks like the CLA is having issues despite being a Googler. Could you verify you've completed all the steps at go/cla#troubleshoot? Thanks!
Please let me know if you're completed the steps, thanks!
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_filestore_instance" "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 |
To create an instance with a tag | ||
|
||
```hcl | ||
resource "filestore_instnace" "my_instance" { |
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.
filestore_instance
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
modes = ["MODE_IPV4"] | ||
reserved_ip_range = "172.19.31.0/29" | ||
} | ||
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.
Do not hardcode tags here please. Use the parameter to build the tags field. Similar to here: https://github.com/GoogleCloudPlatform/magic-modules/pull/11440/files
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 |
b1714d0
to
b7606a2
Compare
Converted, backup located at https://github.com/NickElliot/magic-modules/tree/terraform-filestore-tags-11555-backup |
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_filestore_instance" "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 |
b7606a2
to
a673e6a
Compare
added import statement "github.com/hashicorp/terraform-provider-google/google/envvar"
Add tags field to instance resource to allow setting tags on instance resources at creation time.
Part of b/364841739
release-note:none