Skip to content

Commit 48ad546

Browse files
mtrqqanoopkverma-google
authored andcommitted
Fixed cluster resource limits maximum to be marked as required in docs. (GoogleCloudPlatform#12777)
1 parent a13a820 commit 48ad546

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

mmv1/third_party/terraform/services/container/resource_container_cluster.go.tmpl

+4-3
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,10 @@ func ResourceContainerCluster() *schema.Resource {
628628
Description: `Minimum amount of the resource in the cluster.`,
629629
},
630630
"maximum": {
631-
Type: schema.TypeInt,
632-
Optional: true,
633-
Description: `Maximum amount of the resource in the cluster.`,
631+
Type: schema.TypeInt,
632+
Description: `Maximum amount of the resource in the cluster.`,
633+
Required: true,
634+
ValidateFunc: validation.IntAtLeast(1),
634635
},
635636
},
636637
},

mmv1/third_party/terraform/website/docs/r/container_cluster.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ for a list of types.
582582

583583
* `minimum` - (Optional) Minimum amount of the resource in the cluster.
584584

585-
* `maximum` - (Optional) Maximum amount of the resource in the cluster.
585+
* `maximum` - (Required) Maximum amount of the resource in the cluster.
586586

587587
<a name="nested_auto_provisioning_defaults"></a>The `auto_provisioning_defaults` block supports:
588588

0 commit comments

Comments
 (0)