Skip to content
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

[DataprocGdc] Add Terraform support for Dataproc on GDC resources #11989

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

JerryLeiDing
Copy link
Contributor

@JerryLeiDing JerryLeiDing commented Oct 11, 2024

This PR adds support for Dataproc on GDC API Service Instances to the GCP Terraform provider.

Release Note Template for Downstream PRs (will be copied)

`google_dataproc_gdc_service_instance`

@github-actions github-actions bot requested a review from rileykarson October 11, 2024 23:07
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@rileykarson, 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.

@JerryLeiDing JerryLeiDing force-pushed the dataproc-gdc branch 2 times, most recently from cc193ef to 2466249 Compare October 11, 2024 23:36

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@JerryLeiDing JerryLeiDing force-pushed the dataproc-gdc branch 2 times, most recently from 480f575 to a052996 Compare October 21, 2024 19:30
@modular-magician

This comment was marked as outdated.

@JerryLeiDing JerryLeiDing force-pushed the dataproc-gdc branch 2 times, most recently from 286024b to 21aa248 Compare October 21, 2024 19:37
@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

1 similar comment
@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

1 similar comment
@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 14 files changed, 1229 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 12 files changed, 1219 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 135 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 114 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4245
Passed tests: 3816
Skipped tests: 420
Affected tests: 9

Click here to see the affected service packages

All service packages are affected

Action taken

Found 9 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccApphubWorkload_apphubWorkloadBasicExample
  • TestAccApphubWorkload_apphubWorkloadFullExample
  • TestAccApphubWorkload_apphubWorkloadUpdate
  • TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy
  • TestAccDataSourceApphubDiscoveredWorkload_basic
  • TestAccDataprocGdcServiceInstance_dataprocgdcServiceinstanceExample
  • TestAccNetworkServicesLbRouteExtension_networkServicesLbRouteExtensionBasicExample
  • TestAccNetworkServicesLbTrafficExtension_networkServicesLbTrafficExtensionBasicExample
  • TestAccNetworkServicesLbTrafficExtension_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccApphubWorkload_apphubWorkloadBasicExample [Debug log]
TestAccApphubWorkload_apphubWorkloadFullExample [Debug log]
TestAccApphubWorkload_apphubWorkloadUpdate [Debug log]
TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy [Debug log]
TestAccDataSourceApphubDiscoveredWorkload_basic [Debug log]
TestAccDataprocGdcServiceInstance_dataprocgdcServiceinstanceExample [Debug log]
TestAccNetworkServicesLbRouteExtension_networkServicesLbRouteExtensionBasicExample [Debug log]
TestAccNetworkServicesLbTrafficExtension_networkServicesLbTrafficExtensionBasicExample [Debug log]
TestAccNetworkServicesLbTrafficExtension_update [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy [Error message] [Debug log]

Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made.

Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer.


🟢 All tests passed!

View the build log or the debug log for each test

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple small items - please also add the previously-requested references: #11989 (review)

output: true
- name: state
type: String
description: "The current state. \n Possible values:\n STATE_UNSPECIFIED\nCREATING\nACTIVE\nDISCONNECTED\nDELETING\nSTOPPING\nSTOPPED\nSTARTING\nUPDATING\nFAILED"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update this as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment on lines 122 to 123
This will be\nthe service_account if specified. Otherwise, it will be an automatically\ncreated
per-resource P4SA that also automatically has Fleet Workload\nIdentity bindings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This will be\nthe service_account if specified. Otherwise, it will be an automatically\ncreated
per-resource P4SA that also automatically has Fleet Workload\nIdentity bindings
This will be the service_account if specified. Otherwise, it will be an automatically created
per-resource P4SA that also automatically has Fleet Workload Identity bindings

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@JerryLeiDing
Copy link
Contributor Author

A couple small items - please also add the previously-requested references: #11989 (review)

I added a link to our user guide. The API documentation is not available yet, but I can link to where the page will be if that helps.

@github-actions github-actions bot requested a review from melinath October 31, 2024 21:53
@melinath
Copy link
Member

The API documentation is not available yet, but I can link to where the page will be if that helps.

Yeah, if you have that handy (and it's not going to change) that would be great - otherwise someone would need to come along and add it later.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 14 files changed, 1222 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 12 files changed, 1212 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 135 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 114 insertions(+))

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
@JerryLeiDing
Copy link
Contributor Author

The API documentation is not available yet, but I can link to where the page will be if that helps.

Yeah, if you have that handy (and it's not going to change) that would be great - otherwise someone would need to come along and add it later.

Done

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 14 files changed, 1224 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 12 files changed, 1214 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 135 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 114 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4245
Passed tests: 3824
Skipped tests: 420
Affected tests: 1

Click here to see the affected service packages

All service packages are affected

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4245
Passed tests: 3825
Skipped tests: 420
Affected tests: 0

Click here to see the affected service packages

All service packages are affected

🟢 All tests passed!

View the build log

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't validate the schema since the docs don't exist yet, but this resource seems to be working fine in tests. Thanks!

@melinath melinath merged commit 198e6d5 into GoogleCloudPlatform:main Nov 1, 2024
15 of 16 checks passed
niharika-98 pushed a commit to niharika-98/magic-modules that referenced this pull request Nov 1, 2024
…ogleCloudPlatform#11989)

Co-authored-by: Jerry Ding <dingj@google.com>
Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Nov 5, 2024
…ogleCloudPlatform#11989)

Co-authored-by: Jerry Ding <dingj@google.com>
Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
akshat-jindal-nit pushed a commit to akshat-jindal-nit/magic-modules that referenced this pull request Nov 18, 2024
…ogleCloudPlatform#11989)

Co-authored-by: Jerry Ding <dingj@google.com>
Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
amanMahendroo pushed a commit to amanMahendroo/magic-modules that referenced this pull request Dec 17, 2024
…ogleCloudPlatform#11989)

Co-authored-by: Jerry Ding <dingj@google.com>
Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants