v2.3.0
New features
- Add EIP to cluster
- Add taints to nodes
- Add Node Pool creation
- Add node_index parameter (compatibility break, please read the bellow note)
Important note regarding this new release:
This release comes with a compatibility break with the previous v2.2.0 and earlier.
We introduced an index name parameter for the nodes_list (node_index
) in order to compute the nodes list as a map with indexes. This way, if the nodes list is modified (nodes order change or node deletion), the whole list won't be computed again with node deletion / creation.
The index name is only a Terraform parameter and won't be display anywhere in Flexible Engine.
You will have to fix the Terraform state to avoid nodes deletion / creation when upgrading to this new module version:
- List the resources
terraform state list
...
module.cce2_cluster.flexibleengine_cce_node_v3.cce_cluster_node["0"]
module.cce2_cluster.flexibleengine_cce_node_v3.cce_cluster_node["1"]
module.cce2_cluster.flexibleengine_cce_node_v3.cce_cluster_node["2"]
module.cce2_cluster.flexibleengine_cce_node_v3.cce_cluster_node["3"]
...
- For each node resource, you can display the node name
terraform state show "module.cce2_cluster.flexibleengine_cce_node_v3.cce_cluster_node[0]" | grep name
terraform state show "module.cce2_cluster.flexibleengine_cce_node_v3.cce_cluster_node[1]" | grep name
...
- Finally, change the resource index by the one you set with the
node_index
parameter in the node definition
terraform state mv "module.cce2_cluster.flexibleengine_cce_node_v3.cce_cluster_node[0]" "module.cce2_cluster.flexibleengine_cce_node_v3.cce_cluster_node[\"<first_node_index>\"]"
terraform state mv "module.cce2_cluster.flexibleengine_cce_node_v3.cce_cluster_node[1]" "module.cce2_cluster.flexibleengine_cce_node_v3.cce_cluster_node[\"<second_node_index>\"]"
...
Index name in the new feature node_pool_list will work the same way once implemented.