-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Terraform Version, Provider Version and Kubernetes Version
Terraform version: v1.1.5
Kubernetes provider version: v2.21.0
Kubernetes version: 1.25.5
Affected Resource(s)
The provider itself
Terraform Configuration Files
provider "kubernetes" {
host = azurerm_kubernetes_cluster.aks.kube_admin_config.0.host
username = azurerm_kubernetes_cluster.aks.kube_admin_config.0.username
password = azurerm_kubernetes_cluster.aks.kube_admin_config.0.password
client_certificate = base64decode(azurerm_kubernetes_cluster.aks.kube_admin_config[0].client_certificate)
client_key = base64decode(azurerm_kubernetes_cluster.aks.kube_admin_config[0].client_key)
cluster_ca_certificate = base64decode(azurerm_kubernetes_cluster.aks.kube_admin_config[0].cluster_ca_certificate)
}Debug Output
Error: Conflicting configuration arguments
│
│ with provider["registry.terraform.io/hashicorp/kubernetes"],
│ on aks.tf line 198, in provider "kubernetes":
│ 198: username = azurerm_kubernetes_cluster.aks.kube_admin_config.0.username
│
│ "username": conflicts with token
╵
╷
│ Error: Conflicting configuration arguments
│
│ with provider["registry.terraform.io/hashicorp/kubernetes"],
│ on aks.tf line 199, in provider "kubernetes":
│ 199: password = azurerm_kubernetes_cluster.aks.kube_admin_config.0.password
│
│ "password": conflicts with token
╵
╷
│ Error: Conflicting configuration arguments
│
│ with provider["registry.terraform.io/hashicorp/kubernetes"],
│ on aks.tf line 200, in provider "kubernetes":
│ 200: client_certificate = base64decode(azurerm_kubernetes_cluster.aks.kube_admin_config[0].client_certificate)
│
│ "client_certificate": conflicts with username
╵
╷
│ Error: Conflicting configuration arguments
│
│ with provider["registry.terraform.io/hashicorp/kubernetes"],
│ on aks.tf line 201, in provider "kubernetes":
│ 201: client_key = base64decode(azurerm_kubernetes_cluster.aks.kube_admin_config[0].client_key)
│
│ "client_key": conflicts with username
╵
Panic Output
Steps to Reproduce
Move from hashicorp kubernetes provider version 2.20.0 to 2.21.0 (released 3 days ago)
terraform plan
Expected Behavior
The plan command is ran without error
Actual Behavior
I get an error chain stating I have conflicting configuration arguments
Important Factoids
Fixing the provider version to 2.20.0 solves the issue. I didn't have any issue with previous hashicorp kubernetes provider version bumps
References
Didn't find any
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment