Skip to content

Commit

Permalink
make node_pool required
Browse files Browse the repository at this point in the history
  • Loading branch information
nvthongswansea committed Jan 3, 2025
1 parent 2c72273 commit 7094a58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gridscale/resource_gridscale_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (rgk8sm *ResourceGridscaleK8sModeler) buildInputSchema() map[string]*schema
},
"node_pool": {
Type: schema.TypeList,
Optional: true,
Required: true,
Description: `Define a node pool and its attributes.`,
Elem: &schema.Resource{
Schema: nodePoolSchema,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/k8s.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The following arguments are supported:

* `labels` - (Optional) List of labels in the format [ "label1", "label2" ].

* `node_pool` - (Optional) The collection of node pool specifications. Mutiple node pools can be defined with multiple `node_pool` blocks. The node pool block supports the following arguments:
* `node_pool` - (Required) The collection of node pool specifications. Mutiple node pools can be defined with multiple `node_pool` blocks. The node pool block supports the following arguments:
* `name` - Name of the node pool.
* `node_count` - Number of worker nodes.
* `cores` - Cores per worker node.
Expand Down

0 comments on commit 7094a58

Please sign in to comment.