This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/cloudstack-terraform-provider.git


The following commit(s) were added to refs/heads/main by this push:
     new 35307e1  added noderootdisksize parameter (#90)
35307e1 is described below

commit 35307e1d0771dd69386b6349154f39c07b3f5e13
Author: kiranchavala <[email protected]>
AuthorDate: Wed Mar 6 10:43:07 2024 +0530

    added noderootdisksize parameter (#90)
---
 cloudstack/resource_cloudstack_kubernetes_cluster.go | 9 +++++++++
 website/docs/r/kubernetes_cluster.html.markdown      | 1 +
 2 files changed, 10 insertions(+)

diff --git a/cloudstack/resource_cloudstack_kubernetes_cluster.go 
b/cloudstack/resource_cloudstack_kubernetes_cluster.go
index bdb0dbd..e182ea3 100644
--- a/cloudstack/resource_cloudstack_kubernetes_cluster.go
+++ b/cloudstack/resource_cloudstack_kubernetes_cluster.go
@@ -126,6 +126,12 @@ func resourceCloudStackKubernetesCluster() 
*schema.Resource {
                                Optional: true,
                                ForceNew: true,
                        },
+
+                       "noderootdisksize": {
+                               Type:     schema.TypeInt,
+                               Optional: true,
+                               Default:  8,
+                       },
                },
        }
 }
@@ -171,6 +177,9 @@ func resourceCloudStackKubernetesClusterCreate(d 
*schema.ResourceData, meta inte
        if controlNodesSize, ok := d.GetOk("control_nodes_size"); ok {
                p.SetControlnodes(int64(controlNodesSize.(int)))
        }
+       if noderootdisksize, ok := d.GetOk("noderootdisksize"); ok {
+               p.SetNoderootdisksize(int64(noderootdisksize.(int)))
+       }
 
        // If there is a project supplied, we retrieve and set the project id
        if err := setProjectid(p, cs, d); err != nil {
diff --git a/website/docs/r/kubernetes_cluster.html.markdown 
b/website/docs/r/kubernetes_cluster.html.markdown
index 9c3967a..986f2eb 100644
--- a/website/docs/r/kubernetes_cluster.html.markdown
+++ b/website/docs/r/kubernetes_cluster.html.markdown
@@ -51,6 +51,7 @@ The following arguments are supported:
 * `ip_address` - (Computed) The IP address of the Kubernetes cluster.
 * `state` - (Optional) The state of the Kubernetes cluster. Defaults to 
`"Running"`.
 * `project` - (Optional) The project to assign the Kubernetes cluster to.
+* `noderootdisksize` - (Optional) root disk size in GB for each node.
 
 ## Attributes Reference
 

Reply via email to