Skip to content

Commit 70ca52a

Browse files
Fixed cluster resource limits maximum to be marked as required in docs. (#12777) (#9151)
[upstream:efb7d4653f9f5ebfea45622b89c8b56aa8a354f1] Signed-off-by: Modular Magician <[email protected]>
1 parent cc9189e commit 70ca52a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.changelog/12777.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
container: marked `cluster_autoscaling.resource_limits.maximum` as required as requests would fail if it was not set
3+
```

google-beta/services/container/resource_container_cluster.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,10 @@ func ResourceContainerCluster() *schema.Resource {
622622
Description: `Minimum amount of the resource in the cluster.`,
623623
},
624624
"maximum": {
625-
Type: schema.TypeInt,
626-
Optional: true,
627-
Description: `Maximum amount of the resource in the cluster.`,
625+
Type: schema.TypeInt,
626+
Description: `Maximum amount of the resource in the cluster.`,
627+
Required: true,
628+
ValidateFunc: validation.IntAtLeast(1),
628629
},
629630
},
630631
},

website/docs/r/container_cluster.html.markdown

Lines changed: 1 addition & 1 deletion
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)