Skip to content

Commit

Permalink
Adds description for default value of cpuidle field (#10005) (#17355)
Browse files Browse the repository at this point in the history
* add description

* remove tail space

[upstream:f45d7c311f1b4b90d56222c7e1ed8929c919b136]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and SarahFrench committed Mar 1, 2024
1 parent 99d8265 commit 8540754
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/10005.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
7 changes: 4 additions & 3 deletions google/services/cloudrunv2/resource_cloud_run_v2_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,10 @@ If omitted, a port number will be chosen and passed to the container through the
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"cpu_idle": {
Type: schema.TypeBool,
Optional: true,
Description: `Determines whether CPU should be throttled or not outside of requests.`,
Type: schema.TypeBool,
Optional: true,
Description: `Determines whether CPU is only allocated during requests. True by default if the parent 'resources' field is not set. However, if
'resources' is set, this field must be explicitly set to true to preserve the default behavior.`,
},
"limits": {
Type: schema.TypeMap,
Expand Down
3 changes: 2 additions & 1 deletion website/docs/r/cloud_run_v2_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,8 @@ The following arguments are supported:

* `cpu_idle` -
(Optional)
Determines whether CPU should be throttled or not outside of requests.
Determines whether CPU is only allocated during requests. True by default if the parent `resources` field is not set. However, if
`resources` is set, this field must be explicitly set to true to preserve the default behavior.

* `startup_cpu_boost` -
(Optional)
Expand Down

0 comments on commit 8540754

Please sign in to comment.