Skip to content

Commit 775a5af

Browse files
Add support for pd-balanced disk type (#3827) (#2421)
* add support for pd-balanced * Update products/compute/api.yaml Co-authored-by: Sam Levenick <[email protected]> Co-authored-by: Sam Levenick <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Sam Levenick <[email protected]>
1 parent f17d7be commit 775a5af

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

.changelog/3827.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```release-note:enhancement
2+
compute: added support for pd-balanced disk type for `google_compute_instance`
3+
```
4+
```release-note:enhancement
5+
container: added support for pd-balanced disk type for `google_container_node_pool`
6+
```

google-beta/node_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func schemaNodeConfig() *schema.Schema {
4040
Optional: true,
4141
Computed: true,
4242
ForceNew: true,
43-
ValidateFunc: validation.StringInSlice([]string{"pd-standard", "pd-ssd"}, false),
43+
ValidateFunc: validation.StringInSlice([]string{"pd-standard", "pd-balanced", "pd-ssd"}, false),
4444
},
4545

4646
"guest_accelerator": {

google-beta/resource_compute_instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ func resourceComputeInstance() *schema.Resource {
155155
AtLeastOneOf: initializeParamsKeys,
156156
Computed: true,
157157
ForceNew: true,
158-
ValidateFunc: validation.StringInSlice([]string{"pd-standard", "pd-ssd"}, false),
159-
Description: `The GCE disk type. One of pd-standard or pd-ssd.`,
158+
ValidateFunc: validation.StringInSlice([]string{"pd-standard", "pd-ssd", "pd-balanced"}, false),
159+
Description: `The GCE disk type. One of pd-standard, pd-ssd or pd-balanced.`,
160160
},
161161

162162
"image": {

google-beta/resource_compute_instance_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func resourceComputeInstanceTemplate() *schema.Resource {
135135
Optional: true,
136136
ForceNew: true,
137137
Computed: true,
138-
Description: `The GCE disk type. Can be either "pd-ssd", "local-ssd", or "pd-standard".`,
138+
Description: `The GCE disk type. Can be either "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".`,
139139
},
140140

141141
"labels": {

website/docs/r/compute_instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ The `initialize_params` block supports:
203203
* `size` - (Optional) The size of the image in gigabytes. If not specified, it
204204
will inherit the size of its base image.
205205

206-
* `type` - (Optional) The GCE disk type. May be set to pd-standard or pd-ssd.
206+
* `type` - (Optional) The GCE disk type. May be set to pd-standard, pd-balanced or pd-ssd.
207207

208208
* `image` - (Optional) The image from which to initialize this disk. This can be
209209
one of: the image's `self_link`, `projects/{project}/global/images/{image}`,

website/docs/r/compute_instance_template.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ The `disk` block supports:
281281
~> **Note:** Either `source` or `source_image` is **required** when creating a new instance except for when creating a local SSD. Check the API [docs](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates/insert) for details.
282282

283283
* `disk_type` - (Optional) The GCE disk type. Can be either `"pd-ssd"`,
284-
`"local-ssd"`, or `"pd-standard"`.
284+
`"local-ssd"`, `"pd-balanced"` or `"pd-standard"`.
285285

286286
* `disk_size_gb` - (Optional) The size of the image in gigabytes. If not
287287
specified, it will inherit the size of its base image. For SCRATCH disks,

website/docs/r/container_cluster.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ The `node_config` block supports:
554554
in GB. The smallest allowed disk size is 10GB. Defaults to 100GB.
555555

556556
* `disk_type` - (Optional) Type of the disk attached to each node
557-
(e.g. 'pd-standard' or 'pd-ssd'). If unspecified, the default disk type is 'pd-standard'
557+
(e.g. 'pd-standard', 'pd-balanced' or 'pd-ssd'). If unspecified, the default disk type is 'pd-standard'
558558

559559
* `guest_accelerator` - (Optional) List of the type and count of accelerator cards attached to the instance.
560560
Structure documented below.

0 commit comments

Comments
 (0)