-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 Managed Folder Resource #10670
base: main
Are you sure you want to change the base?
Add Managed Folder Resource #10670
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @melinath, 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.
|
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccStorageManagedFolder_googleStorageManagedFolderExample |
|
mmv1/templates/terraform/examples/google_storage_managed_folder.tf.erb
Outdated
Show resolved
Hide resolved
mmv1/templates/terraform/examples/google_storage_managed_folder.tf.erb
Outdated
Show resolved
Hide resolved
It would be good to add IAM support as well because that's what basic use case of managed folder is. Also Managed Folders can not be modified so |
Thank u for your suggestion all, im working on them now to solve them and a push will be added today |
Iam Support is added using
|
Kindly for the review and support |
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_storage_managed_folder_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
managed_folder = # value needed
}
Resource: resource "google_storage_managed_folder_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
managed_folder = # value needed
}
Resource: resource "google_storage_managed_folder_iam_policy" "primary" {
managed_folder = # value needed
}
|
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccStorageManagedFolderIamBindingGenerated|TestAccStorageManagedFolderIamMemberGenerated|TestAccStorageManagedFolderIamPolicyGenerated|TestAccStorageManagedFolder_googleStorageManagedFolderExample |
|
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.
Some changes below - also, please add the remaining output-only fields (createTime, etc.)
mmv1/templates/terraform/examples/google_storage_managed_folder.tf.erb
Outdated
Show resolved
Hide resolved
All Changes requested are done in last commit |
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.
Thanks! Could you also add the remaining output-only fields (createTime, etc.)
CreateTime and UpdateTime are added ! |
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_storage_managed_folder_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_storage_managed_folder_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccStorageManagedFolderIamBindingGenerated|TestAccStorageManagedFolderIamMemberGenerated|TestAccStorageManagedFolderIamPolicyGenerated|TestAccStorageManagedFolder_googleStorageManagedFolderExample |
|
Changes Fixed |
For your review @melinath |
This PR has been waiting for review for 2 days. Please take a look! Use the label |
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_storage_managed_folder_iam_binding" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
Resource: resource "google_storage_managed_folder_iam_member" "primary" {
condition {
description = # value needed
expression = # value needed
title = # value needed
}
}
|
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccStorageManagedFolderIamBindingGenerated|TestAccStorageManagedFolderIamMemberGenerated|TestAccStorageManagedFolderIamPolicyGenerated|TestAccStorageManagedFolder_googleStorageManagedFolderExample |
|
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.
It looks like the API appends a /
to the name
field. That means you'll need a custom_flatten function for the name
field to remove the /
.
---[ REQUEST ]---------------------------------------
POST /storage/v1/b/tf-test-bucket-namezinmsqu9ld/managedFolders?alt=json HTTP/1.1
Host: storage.googleapis.com
User-Agent: Terraform/1.2.5 (+https://www.terraform.io) Terraform-Plugin-SDK/2.33.0 terraform-provider-google-beta/acc
Content-Length: 49
Content-Type: application/json
Accept-Encoding: gzip
{
"name": "tf-test-managed-folder-namezinmsqu9ld"
}
-----------------------------------------------------
2024/05/20 16:42:29 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Content-Length: 471
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Type: application/json; charset=UTF-8
Date: Mon, 20 May 2024 16:42:29 GMT
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: UploadServer
Vary: Origin
Vary: X-Origin
X-Guploader-Uploadid: ABPtcPqoHmybpEkhK-LfvTFWBJNLdFeOEnOJrZheDTJhxoZggSeExSP68mfuuMMZlHdttA12NTg
{
"kind": "storage#managedFolder",
"name": "tf-test-managed-folder-namezinmsqu9ld/",
"bucket": "tf-test-bucket-namezinmsqu9ld",
"id": "tf-test-bucket-namezinmsqu9ld/tf-test-managed-folder-namezinmsqu9ld/",
"selfLink": "https://www.googleapis.com/storage/v1/b/tf-test-bucket-namezinmsqu9ld/managedFolders/tf-test-managed-folder-namezinmsqu9ld%2F",
"metageneration": "1",
"createTime": "2024-05-20T16:42:29.768Z",
"updateTime": "2024-05-20T16:42:29.768Z"
}
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.
@hassannmoussaa it looks like a new PR was opened that also covers this resource: #10786
Since your implementation is pretty close to done I'd be inclined to continue with it if you're interested, but if you'd prefer to defer to the other PR that's fine too.
Sorry for being inactive just had some vacation, ill continue contributing to the following PR |
@melinath Please for your review and validation |
Adding GCS Managed Folder support in terraform provider
Related Issue : hashicorp/terraform-provider-google#18053
Terraform configuration