Skip to content

feat: Add disks support to compute_node_template #12187

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

Merged
merged 4 commits into from
Nov 4, 2024

Conversation

jjtroberts
Copy link
Contributor

This PR adds Local SSD disk settings support.

Fixes hashicorp/terraform-provider-google#20026

compute: added `disks` field to `google_compute_node_template` resource

Copy link

google-cla bot commented Oct 29, 2024

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.

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 29, 2024
@jjtroberts jjtroberts marked this pull request as ready for review October 29, 2024 20:23
@github-actions github-actions bot requested a review from zli82016 October 29, 2024 20:24
Copy link

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

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

@modular-magician modular-magician added service/compute-sole-tenancy and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Oct 29, 2024
@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 ( 2 files changed, 164 insertions(+))
google-beta provider: Diff ( 2 files changed, 164 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 54 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_compute_node_template (17 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_node_template" "primary" {
  disks {
    disk_count   = # value needed
    disk_size_gb = # value needed
    disk_type    = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1046
Passed tests: 973
Skipped tests: 73
Affected tests: 0

Click here to see the affected service packages
  • compute

🟢 All tests passed!

View the build log

@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Oct 29, 2024
@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 ( 2 files changed, 164 insertions(+))
google-beta provider: Diff ( 2 files changed, 164 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 54 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_compute_node_template (17 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_compute_node_template" "primary" {
  disks {
    disk_count   = # value needed
    disk_size_gb = # value needed
    disk_type    = # value needed
  }
}

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 29, 2024
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1048
Passed tests: 975
Skipped tests: 73
Affected tests: 0

Click here to see the affected service packages
  • compute

🟢 All tests passed!

View the build log

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 29, 2024
@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 ( 3 files changed, 234 insertions(+))
google-beta provider: Diff ( 3 files changed, 234 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 54 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 116 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1049
Passed tests: 975
Skipped tests: 73
Affected tests: 1

Click here to see the affected service packages
  • compute

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
  • TestAccComputeNodeTemplate_nodeTemplateDisksExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeNodeTemplate_nodeTemplateDisksExample [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

@github-actions github-actions bot requested a review from zli82016 November 2, 2024 15:09
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Nov 2, 2024
@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 ( 3 files changed, 234 insertions(+))
google-beta provider: Diff ( 3 files changed, 234 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 54 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 116 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1059
Passed tests: 986
Skipped tests: 73
Affected tests: 0

Click here to see the affected service packages
  • compute

🟢 All tests passed!

View the build log

Copy link
Member

@zli82016 zli82016 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@zli82016 zli82016 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ResourceComputeNodeTemplate schema support for disks
3 participants