You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting support_istio to false, API request body spec.supportIstio should be set to False (endpoint POST https://cce.sa-brazil-1.myhuaweicloud.com/api/v3/projects/***project-id-redacted***/clusters)
Actual Behavior
API request body does not have spec.supportIstio attribute (endpoint POST https://cce.sa-brazil-1.myhuaweicloud.com/api/v3/projects/***project-id-redacted***/clusters). Because of that, CCE Cluster is created with supportIstio attribute equal to true, which is the default value according to endpoint documentation.
This problem can be confirmed when running terraform plan after the cluster is created by Terraform. You can see that the cluster needs to be replaced because support_istio is set to true in the cluster created before.
$ terraform plan
data.huaweicloud_enterprise_project.main: Reading...
data.huaweicloud_enterprise_project.main: Read complete after 2s [id=0]
huaweicloud_vpc.main: Refreshing state... [id=***]
huaweicloud_vpc_subnet.main: Refreshing state... [id=***]
huaweicloud_cce_cluster.main: Refreshing state... [id=***]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following
symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# huaweicloud_cce_cluster.main must be replaced
-/+ resource "huaweicloud_cce_cluster" "main" {
~ alias = "cce-test" -> (known after apply)
~ billing_mode = 0 -> (known after apply)
~ category = "CCE" -> (known after apply)
...
name = "cce-test"
~ region = "sa-brazil-1" -> (known after apply)
~ security_group_id = "***" -> (known after apply)
~ service_network_cidr = "10.247.0.0/16" -> (known after apply)
~ status = "Available" -> (known after apply)
~ support_istio = true -> false # forces replacement
- tags = {} -> null
# (6 unchanged attributes hidden)
~ masters (known after apply)
- masters {
- availability_zone = "sa-brazil-1a" -> null
}
}
Plan: 1 to add, 0 to change, 1 to destroy.
The text was updated successfully, but these errors were encountered:
@gutierrezps I've asked the CCE service team about this problem. This parameter is deprecated. support_istio is true for all cce clusters, and can not be changed.
Terraform Configuration Files
Debug Output
Expected Behavior
When setting
support_istio
tofalse
, API request bodyspec.supportIstio
should be set toFalse
(endpointPOST https://cce.sa-brazil-1.myhuaweicloud.com/api/v3/projects/***project-id-redacted***/clusters
)Actual Behavior
API request body does not have
spec.supportIstio
attribute (endpointPOST https://cce.sa-brazil-1.myhuaweicloud.com/api/v3/projects/***project-id-redacted***/clusters
). Because of that, CCE Cluster is created withsupportIstio
attribute equal to true, which is the default value according to endpoint documentation.This problem can be confirmed when running
terraform plan
after the cluster is created by Terraform. You can see that the cluster needs to be replaced becausesupport_istio
is set to true in the cluster created before.The text was updated successfully, but these errors were encountered: