Skip to content

Commit

Permalink
Merge pull request #19 from shoudusse/fix-nodepool-attribute-name
Browse files Browse the repository at this point in the history
fix(cce/node_pool): replace scall_enable with scale_enable
  • Loading branch information
shoudusse authored Aug 29, 2023
2 parents e207278 + 827092a commit 157a988
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module "cce2_cluster" {
node_flavor = "s3.large.2"
availability_zone = null
initial_node_count = 1
scall_enable = true
scale_enable = true
min_node_count = 1
max_node_count = 3
scale_down_cooldown_time = null
Expand Down Expand Up @@ -212,7 +212,7 @@ inputs = {
node_flavor = "s3.large.2"
availability_zone = null
initial_node_count = 1
scall_enable = true
scale_enable = true
min_node_count = 1
max_node_count = 3
scale_down_cooldown_time = null
Expand Down Expand Up @@ -279,7 +279,7 @@ inputs = {
| key\_pair | Name of the SSH key pair | `string` | n/a | yes |
| network\_id | ID of the Network | `string` | n/a | yes |
| node\_os | Operating System of the CCE Worker Node | `string` | n/a | yes |
| node\_pool\_list | Nodes poool list of the CCE2 Cluster | <pre>list(object({<br> node_pool_index = string<br> node_pool_name = string<br> node_flavor = string<br> availability_zone = string<br> initial_node_count = number<br> scall_enable = bool<br> min_node_count = number<br> max_node_count = number<br> scale_down_cooldown_time = number<br> priority = number<br> root_volume_size = number<br> root_volume_type = string<br> type = string<br> data_volume_size = number<br> data_volume_type = string<br> node_labels = map(string)<br> taints = list(object({<br> key = string<br> value = string<br> effect = string<br> }))<br> postinstall_script = string<br> preinstall_script = string<br> }))</pre> | `[]` | no |
| node\_pool\_list | Nodes poool list of the CCE2 Cluster | <pre>list(object({<br> node_pool_index = string<br> node_pool_name = string<br> node_flavor = string<br> availability_zone = string<br> initial_node_count = number<br> scale_enable = bool<br> min_node_count = number<br> max_node_count = number<br> scale_down_cooldown_time = number<br> priority = number<br> root_volume_size = number<br> root_volume_type = string<br> type = string<br> data_volume_size = number<br> data_volume_type = string<br> node_labels = map(string)<br> taints = list(object({<br> key = string<br> value = string<br> effect = string<br> }))<br> postinstall_script = string<br> preinstall_script = string<br> }))</pre> | `[]` | no |
| nodes\_list | Nodes list of the CCE2 Cluster | <pre>list(object({<br> node_index = string<br> node_name = string<br> node_flavor = string<br> availability_zone = string<br> root_volume_size = number<br> root_volume_type = string<br> data_volume_size = number<br> data_volume_type = string<br> node_labels = map(string)<br> vm_tags = map(string)<br> taints = list(object({<br> key = string<br> value = string<br> effect = string<br> }))<br> postinstall_script = string<br> preinstall_script = string<br> }))</pre> | `[]` | no |
| vpc\_id | ID of the VPC | `string` | n/a | yes |

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ resource "flexibleengine_cce_node_pool_v3" "cce_node_pool" {
key_pair = var.key_pair

initial_node_count = each.value.initial_node_count
scall_enable = each.value.scall_enable
scale_enable = each.value.scale_enable
min_node_count = each.value.min_node_count
max_node_count = each.value.max_node_count
scale_down_cooldown_time = each.value.scale_down_cooldown_time
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ variable "node_pool_list" {
node_flavor = string
availability_zone = string
initial_node_count = number
scall_enable = bool
scale_enable = bool
min_node_count = number
max_node_count = number
scale_down_cooldown_time = number
Expand All @@ -128,4 +128,4 @@ variable "node_pool_list" {
postinstall_script = string
preinstall_script = string
}))
}
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
flexibleengine = {
source = "FlexibleEngineCloud/flexibleengine"
version = ">= 1.17"
version = ">= 1.34"
}
}
required_version = ">= 0.13"
Expand Down

0 comments on commit 157a988

Please sign in to comment.