diff --git a/castai/resource_node_configuration.go b/castai/resource_node_configuration.go index a928440f..5c8e6716 100644 --- a/castai/resource_node_configuration.go +++ b/castai/resource_node_configuration.go @@ -187,8 +187,8 @@ func resourceNodeConfiguration() *schema.Resource { "volume_type": { Type: schema.TypeString, Optional: true, - Description: "AWS EBS volume type to be used for CAST provisioned nodes. One of: gp3, io1, io2", - ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"gp3", "io1", "io2"}, true)), + Description: "AWS EBS volume type to be used for CAST provisioned nodes. One of: gp3, gp2, io1, io2", + ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"gp3", "gp2", "io1", "io2"}, true)), }, "volume_iops": { Type: schema.TypeInt, diff --git a/castai/sdk/api.gen.go b/castai/sdk/api.gen.go index fd1f2ded..0e9d44a5 100644 --- a/castai/sdk/api.gen.go +++ b/castai/sdk/api.gen.go @@ -2375,6 +2375,7 @@ type NodetemplatesV1TemplateConstraints struct { // Fallback restore rate in seconds: defines how much time should pass before spot fallback should be attempted to be restored to real spot. FallbackRestoreRateSeconds *int32 `json:"fallbackRestoreRateSeconds"` Gpu *NodetemplatesV1TemplateConstraintsGPUConstraints `json:"gpu,omitempty"` + IncludeBurstableInstances *bool `json:"includeBurstableInstances"` InstanceFamilies *NodetemplatesV1TemplateConstraintsInstanceFamilyConstraints `json:"instanceFamilies,omitempty"` // This template is gpu only. Setting this to true, will result in only instances with GPUs being considered. @@ -2977,6 +2978,7 @@ type ExternalClusterAPIListNodesParams struct { NodeTemplateName *string `form:"nodeTemplateName,omitempty" json:"nodeTemplateName,omitempty"` NodeTemplateVersion *string `form:"nodeTemplateVersion,omitempty" json:"nodeTemplateVersion,omitempty"` NodeName *string `form:"nodeName,omitempty" json:"nodeName,omitempty"` + ExcludeDeleting *bool `form:"excludeDeleting,omitempty" json:"excludeDeleting,omitempty"` } // ExternalClusterAPIListNodesParamsNodeStatus defines parameters for ExternalClusterAPIListNodes. diff --git a/castai/sdk/client.gen.go b/castai/sdk/client.gen.go index 624e9174..f9da3337 100644 --- a/castai/sdk/client.gen.go +++ b/castai/sdk/client.gen.go @@ -4422,6 +4422,22 @@ func NewExternalClusterAPIListNodesRequest(server string, clusterId string, para } + if params.ExcludeDeleting != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludeDeleting", runtime.ParamLocationQuery, *params.ExcludeDeleting); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() req, err := http.NewRequest("GET", queryURL.String(), nil) diff --git a/docs/resources/node_configuration.md b/docs/resources/node_configuration.md index c4175d9f..ae8a1da2 100644 --- a/docs/resources/node_configuration.md +++ b/docs/resources/node_configuration.md @@ -111,7 +111,7 @@ Optional: - `volume_iops` (Number) AWS EBS volume IOPS to be used for CAST provisioned nodes - `volume_kms_key_arn` (String) AWS KMS key ARN for encrypting EBS volume attached to the node - `volume_throughput` (Number) AWS EBS volume throughput in MiB/s to be used for CAST provisioned nodes -- `volume_type` (String) AWS EBS volume type to be used for CAST provisioned nodes. One of: gp3, io1, io2 +- `volume_type` (String) AWS EBS volume type to be used for CAST provisioned nodes. One of: gp3, gp2, io1, io2 ### Nested Schema for `eks.target_group`