Skip to content

Commit

Permalink
Update description for scaling fields of cloud_run_v2_service (#12619
Browse files Browse the repository at this point in the history
…) (#20793)

[upstream:6cde90491b1bc60513f71527fd0446c6c1a77c2e]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Dec 27, 2024
1 parent 0b67483 commit 5396f5e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/12619.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
9 changes: 5 additions & 4 deletions google/services/cloudrunv2/resource_cloud_run_v2_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,15 @@ If not specified or 0, defaults to 80 when requested CPU >= 1 and defaults to 1
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"max_instance_count": {
Type: schema.TypeInt,
Optional: true,
Description: `Maximum number of serving instances that this resource should have.`,
Type: schema.TypeInt,
Optional: true,
Description: `Maximum number of serving instances that this resource should have. Must not be less than minimum instance count. If absent, Cloud Run will calculate
a default value based on the project's available container instances quota in the region and specified instance size.`,
},
"min_instance_count": {
Type: schema.TypeInt,
Optional: true,
Description: `Minimum number of serving instances that this resource should have.`,
Description: `Minimum number of serving instances that this resource should have. Defaults to 0. Must not be greater than maximum instance count.`,
},
},
},
Expand Down
5 changes: 3 additions & 2 deletions website/docs/r/cloud_run_v2_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -692,11 +692,12 @@ The following arguments are supported:

* `min_instance_count` -
(Optional)
Minimum number of serving instances that this resource should have.
Minimum number of serving instances that this resource should have. Defaults to 0. Must not be greater than maximum instance count.

* `max_instance_count` -
(Optional)
Maximum number of serving instances that this resource should have.
Maximum number of serving instances that this resource should have. Must not be less than minimum instance count. If absent, Cloud Run will calculate
a default value based on the project's available container instances quota in the region and specified instance size.

<a name="nested_vpc_access"></a>The `vpc_access` block supports:

Expand Down

0 comments on commit 5396f5e

Please sign in to comment.