-
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
google_container_cluster: add Node auto-provisioning locations #11305
google_container_cluster: add Node auto-provisioning locations #11305
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @slevenick, 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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_container_cluster" "primary" {
cluster_autoscaling {
auto_provisioning_locations = # value needed
}
}
|
Tests analyticsTotal tests: 200 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 tests
|
|
CheckDestroy: testAccCheckContainerClusterDestroyProducer(t), | ||
Steps: []resource.TestStep{ | ||
{ | ||
Config: testAccContainerCluster_autoprovisioningLocations(clusterName, networkName, subnetworkName, locations), |
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.
Can you add an update step for this field?
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.
yes, np! done
{ | ||
ResourceName: "google_container_cluster.with_autoprovisioning_locations", | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
ImportStateVerifyIgnore: []string{"min_master_version", "deletion_protection"}, | ||
}, | ||
{ | ||
Config: testAccContainerCluster_autoprovisioningLocations(clusterName, networkName, subnetworkName, []string{"us-central1-b", "us-central1-c"}), | ||
Check: resource.ComposeTestCheckFunc( | ||
resource.TestCheckResourceAttr("google_container_cluster.with_autoprovisioning_locations", | ||
"cluster_autoscaling.0.enabled", "true"), | ||
|
||
resource.TestCheckResourceAttr("google_container_cluster.with_autoprovisioning_locations", | ||
"cluster_autoscaling.0.auto_provisioning_locations.0", "us-central1-b"), | ||
|
||
resource.TestCheckResourceAttr("google_container_cluster.with_autoprovisioning_locations", | ||
"cluster_autoscaling.0.auto_provisioning_locations.1", "us-central1-c"), | ||
), | ||
}, | ||
{ | ||
ResourceName: "google_container_cluster.with_autoprovisioning_locations", | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
ImportStateVerifyIgnore: []string{"min_master_version", "deletion_protection"}, | ||
}, |
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.
@slevenick fyi
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_container_cluster" "primary" {
cluster_autoscaling {
auto_provisioning_locations = # value needed
}
}
|
Tests analyticsTotal tests: 200 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 tests
|
|
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!
When Node auto-provisioning is enabled, the terraform provider currently cannot be used to define node auto-provisioning locations. This configuration is, as of today, presently limited to the UI, gcloud, or API.
Tests for google_container_cluster were already successfully executed locally
Release Note Template for Downstream PRs (will be copied)