Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicting Configuration Arguments latest provider version 2.21.0 #2133

Closed
Bv-Lucas opened this issue Jun 5, 2023 · 1 comment
Closed

Comments

@Bv-Lucas
Copy link

Bv-Lucas commented Jun 5, 2023

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
@Bv-Lucas Bv-Lucas added the bug label Jun 5, 2023
@github-actions github-actions bot removed the bug label Jun 5, 2023
@Bv-Lucas
Copy link
Author

Bv-Lucas commented Jun 5, 2023

I believe this is related to #2084
I will mark this closed and follow the PR

@Bv-Lucas Bv-Lucas closed this as completed Jun 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant