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

azurerm_kubernetes_cluster_node_pool not accepting argument custom_ca_trust_certificates_base64 #22539

Closed
1 task done
jocortems opened this issue Jul 14, 2023 · 2 comments · Fixed by #22554
Closed
1 task done

Comments

@jocortems
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.5.3

AzureRM Provider Version

3.64.0

Affected Resource(s)/Data Source(s)

azurerm_kubernetes_cluster and azurerm_kubernetes_cluster_node_pool

Terraform Configuration Files

resource "azurerm_kubernetes_cluster" "k8s_cluster" {
  name                = "${var.k8s_cluster_name}-aks"
  location            = azurerm_resource_group.rg_name.location
  resource_group_name = azurerm_resource_group.rg_name.name
  dns_prefix          = "${var.k8s_cluster_name}-k8s"

  default_node_pool {
    name           = "system"
    node_count     = 1
    vm_size        = var.aks_vm_sku
    vnet_subnet_id = azurerm_subnet.private_subnet_2.id

    custom_ca_trust_enabled = true    
    custom_ca_trust_certificates_base64 = [
      file("ca-chain.pem"),
    ]    
  }

  network_profile {
    network_plugin    = "azure"
    load_balancer_sku = "standard"
    service_cidr      = var.k8s_sevice_cidr
  }

  identity {
    type = "SystemAssigned"
  }

  linux_profile {
    admin_username = var.azure_vm_admin_username
    ssh_key {
      key_data = file(var.ssh_public_key)
    }
  }
}

Debug Output/Panic Output

╷
│ Error: Unsupported argument
│ 
│   on aks.tf line 24, in resource "azurerm_kubernetes_cluster" "k8s_cluster":
│   24:     custom_ca_trust_certificates_base64 = [
│ 
│ An argument named "custom_ca_trust_certificates_base64" is not expected here.

Expected Behaviour

Plan should have succeeded, the argument is provided in the documentation

Actual Behaviour

Plan errored out

Steps to Reproduce

Terraform plan

Important Factoids

N/A

References

Nothing else. I followed the documentation to register the preview feature in my subscription

@stephybun
Copy link
Member

Thanks for raising this issue @jocortems.

It looks like the property was documented under the wrong block - it's actually a top level property so moving it out of the default_node_pool block should fix the error you're seeing.

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.