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
the opentelekomcloud_cce_cluster_v3 ressource is using the wrong default value.
The TF docs say that if "authentication_mode" is not set, then the default value "rbac" is used.
But that is not true. Instead it uses the value "x509" which is not the correct default value for current CCE versions. "rbac" should be used as it is described in the OTC TF provider docs.
The wrong "x509" value causes the permission management of current cluster versions to not be effective.
From OTC provider docs: authentication_mode - (Optional) Authentication mode of the cluster, possible values are rbac and authenticating_proxy. Defaults to rbac. Changing this parameter will create a new cluster resource.
Hi @anton-sidelnikov I understand that now it is really hard to change since it will trigger cluster re-creation unless its in ignore_changes, but now the terraform provider is using an unsupported default value. The OTC API should also reject these request. Bug ticket has been raised by the backend squad to not allow cluster creation with x509, so once that fix is released users cannot deploy clusters with the default value and you will be forced to change authentication_mode nevertheless.
Hello,
the opentelekomcloud_cce_cluster_v3 ressource is using the wrong default value.
The TF docs say that if "authentication_mode" is not set, then the default value "rbac" is used.
But that is not true. Instead it uses the value "x509" which is not the correct default value for current CCE versions. "rbac" should be used as it is described in the OTC TF provider docs.
The wrong "x509" value causes the permission management of current cluster versions to not be effective.
From OTC provider docs:
authentication_mode - (Optional) Authentication mode of the cluster, possible values are rbac and authenticating_proxy. Defaults to rbac. Changing this parameter will create a new cluster resource.
Terraform provider version
opentelekomcloud v1.36.28
Affected Resource(s)
opentelekomcloud_cce_cluster_v3
Terraform Configuration Files
resource "opentelekomcloud_cce_cluster_v3" "cluster_1" {
name = "cluster-tf-x509"
description = "Create cluster"
cluster_type = "VirtualMachine"
flavor_id = "cce.s1.small"
vpc_id = "xxx"
subnet_id = "xxx"
container_network_type = "overlay_l2"
kube_proxy_mode = "ipvs"
}
Debug Output/Panic Output
no error as the cluster itself is getting created.
Steps to Reproduce
terraform apply
Expected Behavior
Creates CCE cluster with rbac authentication
Actual Behavior
Creates CCE cluster with x509 authentication.
From the TFstatefile:
"attributes": {
"annotations": null,
"authenticating_proxy": [],
"authenticating_proxy_ca": null,
"authentication_mode": "x509",
The text was updated successfully, but these errors were encountered: