Skip to content

Commit

Permalink
Promote field compute_instance.scheduling.min_node_cpus and related f…
Browse files Browse the repository at this point in the history
…ields to ga (hashicorp#4593) (hashicorp#3059)

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Mar 15, 2021
1 parent 1176430 commit 3f3907d
Show file tree
Hide file tree
Showing 23 changed files with 52 additions and 40 deletions.
5 changes: 5 additions & 0 deletions .changelog/4593.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```release-note:enhancement
compute: promoted field `server_binding` and `cpu_overcommit_type` fields on `google_node_template` to ga
compute: promoted field `scheduling.min_node_cpus` field on `google_compute_instance` to ga
compute: documented field `scheduling.min_node_cpus` field on `google_compute_instance`
```
2 changes: 1 addition & 1 deletion google-beta/resource_compute_backend_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The possible values are: USE_ORIGIN_HEADERS, FORCE_CACHE_ALL and CACHE_ALL_STATI
"default_ttl": {
Type: schema.TypeInt,
Optional: true,
Description: `Specifies the default TTL for cached content served by this origin for responses
Description: `Specifies the default TTL for cached content served by this origin for responses
that do not have an existing valid TTL (max-age or s-max-age).`,
},
"max_ttl": {
Expand Down
2 changes: 1 addition & 1 deletion google-beta/resource_compute_backend_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ The possible values are: USE_ORIGIN_HEADERS, FORCE_CACHE_ALL and CACHE_ALL_STATI
"default_ttl": {
Type: schema.TypeInt,
Optional: true,
Description: `Specifies the default TTL for cached content served by this origin for responses
Description: `Specifies the default TTL for cached content served by this origin for responses
that do not have an existing valid TTL (max-age or s-max-age).`,
},
"max_ttl": {
Expand Down
2 changes: 1 addition & 1 deletion google-beta/resource_compute_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ See https://cloud.google.com/compute/docs/disks/customer-managed-encryption#encr
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: `The service account used for the encryption request for the given KMS key.
Description: `The service account used for the encryption request for the given KMS key.
If absent, the Compute Engine Service Agent service account is used.`,
},
"raw_key": {
Expand Down
6 changes: 3 additions & 3 deletions google-beta/resource_compute_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ you create the resource.`,
"grpc_service_name": {
Type: schema.TypeString,
Optional: true,
Description: `The gRPC service name for the health check.
Description: `The gRPC service name for the health check.
The value of grpcServiceName has the following meanings by convention:
- Empty serviceName means the overall status of all services at the backend.
- Non-empty serviceName means the health of that gRPC service, as defined by the owner of the service.
Expand All @@ -176,8 +176,8 @@ The grpcServiceName can only be ASCII.`,
"port": {
Type: schema.TypeInt,
Optional: true,
Description: `The port number for the health check request.
Must be specified if portName and portSpecification are not set
Description: `The port number for the health check request.
Must be specified if portName and portSpecification are not set
or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.`,
AtLeastOneOf: []string{"grpc_health_check.0.port", "grpc_health_check.0.port_name", "grpc_health_check.0.port_specification", "grpc_health_check.0.grpc_service_name"},
},
Expand Down
1 change: 0 additions & 1 deletion google-beta/resource_compute_instance.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
package google

import (
Expand Down
1 change: 0 additions & 1 deletion google-beta/resource_compute_instance_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
package google

import (
Expand Down
2 changes: 1 addition & 1 deletion google-beta/resource_compute_machine_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ instance from the image)`,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: `The service account used for the encryption request for the given KMS key.
Description: `The service account used for the encryption request for the given KMS key.
If absent, the Compute Engine Service Agent service account is used.`,
},
"raw_key": {
Expand Down
8 changes: 7 additions & 1 deletion google-beta/resource_compute_node_template_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestAccComputeNodeTemplate_nodeTemplateServerBindingExample(t *testing.T) {

vcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProvidersOiCS,
Providers: testAccProviders,
ExternalProviders: map[string]resource.ExternalProvider{
"random": {},
},
Expand All @@ -79,6 +79,12 @@ func TestAccComputeNodeTemplate_nodeTemplateServerBindingExample(t *testing.T) {
{
Config: testAccComputeNodeTemplate_nodeTemplateServerBindingExample(context),
},
{
ResourceName: "google_compute_node_template.template",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"region"},
},
},
})
}
Expand Down
4 changes: 2 additions & 2 deletions google-beta/resource_compute_region_backend_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ The possible values are: USE_ORIGIN_HEADERS, FORCE_CACHE_ALL and CACHE_ALL_STATI
"default_ttl": {
Type: schema.TypeInt,
Optional: true,
Description: `Specifies the default TTL for cached content served by this origin for responses
Description: `Specifies the default TTL for cached content served by this origin for responses
that do not have an existing valid TTL (max-age or s-max-age).`,
},
"max_ttl": {
Expand Down Expand Up @@ -549,7 +549,7 @@ This field is only used with l4 load balancing.`,
Optional: true,
Description: `The set of URLs to HealthCheck resources for health checking
this RegionBackendService. Currently at most one health
check can be specified.
check can be specified.
A health check must be specified unless the backend service uses an internet
or serverless NEG as a backend.`,
Expand Down
6 changes: 3 additions & 3 deletions google-beta/resource_compute_region_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ you create the resource.`,
"grpc_service_name": {
Type: schema.TypeString,
Optional: true,
Description: `The gRPC service name for the health check.
Description: `The gRPC service name for the health check.
The value of grpcServiceName has the following meanings by convention:
* Empty serviceName means the overall status of all services at the backend.
Expand All @@ -93,8 +93,8 @@ The grpcServiceName can only be ASCII.`,
"port": {
Type: schema.TypeInt,
Optional: true,
Description: `The port number for the health check request.
Must be specified if portName and portSpecification are not set
Description: `The port number for the health check request.
Must be specified if portName and portSpecification are not set
or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.`,
AtLeastOneOf: []string{"grpc_health_check.0.port", "grpc_health_check.0.port_name", "grpc_health_check.0.port_specification", "grpc_health_check.0.grpc_service_name"},
},
Expand Down
10 changes: 5 additions & 5 deletions google-beta/resource_compute_region_network_endpoint_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ Example value: "revision-0010".`,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: `A template to parse service and tag fields from a request URL.
URL mask allows for routing to multiple Run services without having
Description: `A template to parse service and tag fields from a request URL.
URL mask allows for routing to multiple Run services without having
to create multiple network endpoint groups and backend services.
For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2"
an be backed by the same Serverless Network Endpoint Group (NEG) with
URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" }
For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2"
an be backed by the same Serverless Network Endpoint Group (NEG) with
URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" }
and { service="bar2", tag="foo2" } respectively.`,
AtLeastOneOf: []string{"cloud_run.0.service", "cloud_run.0.url_mask"},
},
Expand Down
3 changes: 2 additions & 1 deletion google-beta/resource_dataproc_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"

dataproc "google.golang.org/api/dataproc/v1beta2"
"google.golang.org/api/googleapi"

dataproc "google.golang.org/api/dataproc/v1beta2"
)

func TestDataprocExtractInitTimeout(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/compute_backend_bucket.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ The `cdn_policy` block supports:

* `default_ttl` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
Specifies the default TTL for cached content served by this origin for responses
Specifies the default TTL for cached content served by this origin for responses
that do not have an existing valid TTL (max-age or s-max-age).

* `max_ttl` -
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/compute_backend_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ The `cdn_policy` block supports:

* `default_ttl` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
Specifies the default TTL for cached content served by this origin for responses
Specifies the default TTL for cached content served by this origin for responses
that do not have an existing valid TTL (max-age or s-max-age).

* `max_ttl` -
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/compute_disk.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ The `source_snapshot_encryption_key` block supports:

* `kms_key_service_account` -
(Optional)
The service account used for the encryption request for the given KMS key.
The service account used for the encryption request for the given KMS key.
If absent, the Compute Engine Service Agent service account is used.

## Attributes Reference
Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/compute_health_check.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ The `grpc_health_check` block supports:

* `port` -
(Optional)
The port number for the health check request.
Must be specified if portName and portSpecification are not set
The port number for the health check request.
Must be specified if portName and portSpecification are not set
or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.

* `port_name` -
Expand All @@ -707,7 +707,7 @@ The `grpc_health_check` block supports:

* `grpc_service_name` -
(Optional)
The gRPC service name for the health check.
The gRPC service name for the health check.
The value of grpcServiceName has the following meanings by convention:
- Empty serviceName means the overall status of all services at the backend.
- Non-empty serviceName means the health of that gRPC service, as defined by the owner of the service.
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/compute_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ The `scheduling` block supports:
[here](https://cloud.google.com/compute/docs/nodes/create-nodes).
Structure documented below.

* `minNodeCpus` - (Optional) The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.

The `guest_accelerator` block supports:

* `type` (Required) - The accelerator type resource to expose to this instance. E.g. `nvidia-tesla-k80`.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/compute_machine_image.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ The `machine_image_encryption_key` block supports:

* `kms_key_service_account` -
(Optional)
The service account used for the encryption request for the given KMS key.
The service account used for the encryption request for the given KMS key.
If absent, the Compute Engine Service Agent service account is used.

## Attributes Reference
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/compute_node_template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ The following arguments are supported:
Structure is documented below.

* `server_binding` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
(Optional)
The server binding policy for nodes using this template. Determines
where the nodes should restart following a maintenance event.
Structure is documented below.

* `cpu_overcommit_type` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
(Optional)
CPU overcommit.
Default value is `NONE`.
Possible values are `ENABLED` and `NONE`.
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/compute_region_backend_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ The following arguments are supported:
(Optional)
The set of URLs to HealthCheck resources for health checking
this RegionBackendService. Currently at most one health
check can be specified.
check can be specified.
A health check must be specified unless the backend service uses an internet
or serverless NEG as a backend.

Expand Down Expand Up @@ -681,7 +681,7 @@ The `cdn_policy` block supports:

* `default_ttl` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
Specifies the default TTL for cached content served by this origin for responses
Specifies the default TTL for cached content served by this origin for responses
that do not have an existing valid TTL (max-age or s-max-age).

* `max_ttl` -
Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/compute_region_health_check.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,8 @@ The `grpc_health_check` block supports:

* `port` -
(Optional)
The port number for the health check request.
Must be specified if portName and portSpecification are not set
The port number for the health check request.
Must be specified if portName and portSpecification are not set
or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.

* `port_name` -
Expand All @@ -708,7 +708,7 @@ The `grpc_health_check` block supports:

* `grpc_service_name` -
(Optional)
The gRPC service name for the health check.
The gRPC service name for the health check.
The value of grpcServiceName has the following meanings by convention:
* Empty serviceName means the overall status of all services at the backend.
* Non-empty serviceName means the health of that gRPC service, as defined by the owner of the service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,12 @@ The `cloud_run` block supports:

* `url_mask` -
(Optional)
A template to parse service and tag fields from a request URL.
URL mask allows for routing to multiple Run services without having
A template to parse service and tag fields from a request URL.
URL mask allows for routing to multiple Run services without having
to create multiple network endpoint groups and backend services.
For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2"
an be backed by the same Serverless Network Endpoint Group (NEG) with
URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" }
For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2"
an be backed by the same Serverless Network Endpoint Group (NEG) with
URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" }
and { service="bar2", tag="foo2" } respectively.

The `app_engine` block supports:
Expand Down

0 comments on commit 3f3907d

Please sign in to comment.