magic-modules icon indicating copy to clipboard operation
magic-modules copied to clipboard

Add autoscaling to DPMS terraform

Open brandon-m-hansen opened this issue 2 months ago • 3 comments

This PR adds the scaling_config field to the google_dataproc_metastore_service beta resource. This PR fixes 17949 The autoscaling_config field enables the user to create a DPMS2 service with autoscaling enabled using Terraform.

If this PR is for Terraform, I acknowledge that I have:

  • [x] Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • [x] Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • [x] Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • [x] Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • [x] Read Write release notes before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

dataprocmetastore: added `autoscaling_config` field to `google_dataproc_metastore_service` resource

brandon-m-hansen avatar Apr 24 '24 18:04 brandon-m-hansen

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.

github-actions[bot] avatar Apr 24 '24 18:04 github-actions[bot]

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, 182 insertions(+), 1 deletion(-)) google-beta provider: Diff ( 2 files changed, 182 insertions(+), 1 deletion(-)) terraform-google-conversion: Diff ( 1 file changed, 71 insertions(+))

Missing test report

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

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

resource "google_dataproc_metastore_service" "primary" {
  scaling_config {
    autoscaling_config {
      autoscaling_enabled = # value needed
      limit_config {
        max_scaling_factor = # value needed
        min_scaling_factor = # value needed
      }
    }
  }
}

modular-magician avatar Apr 25 '24 21:04 modular-magician

Tests analytics

Total tests: 16 Passed tests: 14 Skipped tests: 2 Affected tests: 0

Click here to see the affected service packages
  • dataprocmetastore

$\textcolor{green}{\textsf{All tests passed!}}$ View the build log

modular-magician avatar Apr 25 '24 21:04 modular-magician

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 ( 1 file changed, 28 insertions(+)) google-beta provider: Diff ( 2 files changed, 181 insertions(+), 1 deletion(-)) terraform-google-conversion: Diff ( 1 file changed, 71 insertions(+))

Missing test report

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

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

resource "google_dataproc_metastore_service" "primary" {
  scaling_config {
    autoscaling_config {
      autoscaling_enabled = # value needed
      limit_config {
        max_scaling_factor = # value needed
        min_scaling_factor = # value needed
      }
    }
  }
}

modular-magician avatar May 01 '24 20:05 modular-magician

Tests analytics

Total tests: 16 Passed tests: 14 Skipped tests: 2 Affected tests: 0

Click here to see the affected service packages
  • dataprocmetastore

$\textcolor{green}{\textsf{All tests passed!}}$ View the build log

modular-magician avatar May 01 '24 20:05 modular-magician

@GoogleCloudPlatform/terraform-team This PR has been waiting for review for 7 days. Please take a look! Use the label disable-review-reminders to disable these notifications.

github-actions[bot] avatar May 16 '24 09:05 github-actions[bot]