Skip to content

Commit 35307e1

Browse files
authored
added noderootdisksize parameter (apache#90)
1 parent 5be794b commit 35307e1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

cloudstack/resource_cloudstack_kubernetes_cluster.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ func resourceCloudStackKubernetesCluster() *schema.Resource {
126126
Optional: true,
127127
ForceNew: true,
128128
},
129+
130+
"noderootdisksize": {
131+
Type: schema.TypeInt,
132+
Optional: true,
133+
Default: 8,
134+
},
129135
},
130136
}
131137
}
@@ -171,6 +177,9 @@ func resourceCloudStackKubernetesClusterCreate(d *schema.ResourceData, meta inte
171177
if controlNodesSize, ok := d.GetOk("control_nodes_size"); ok {
172178
p.SetControlnodes(int64(controlNodesSize.(int)))
173179
}
180+
if noderootdisksize, ok := d.GetOk("noderootdisksize"); ok {
181+
p.SetNoderootdisksize(int64(noderootdisksize.(int)))
182+
}
174183

175184
// If there is a project supplied, we retrieve and set the project id
176185
if err := setProjectid(p, cs, d); err != nil {

website/docs/r/kubernetes_cluster.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ The following arguments are supported:
5151
* `ip_address` - (Computed) The IP address of the Kubernetes cluster.
5252
* `state` - (Optional) The state of the Kubernetes cluster. Defaults to `"Running"`.
5353
* `project` - (Optional) The project to assign the Kubernetes cluster to.
54+
* `noderootdisksize` - (Optional) root disk size in GB for each node.
5455

5556
## Attributes Reference
5657

0 commit comments

Comments
 (0)