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

Current module does not support 'dns_prefix_private_cluster' for private clusters #568

Open
1 task done
richshadman opened this issue Jun 24, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@richshadman
Copy link

richshadman commented Jun 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Greenfield/Brownfield provisioning

greenfield

Terraform Version

1.8.2

Module Version

9.0.0

AzureRM Provider Version

3.108.1

Affected Resource(s)/Data Source(s)

azurerm_kubernetes_cluster.main

Terraform Configuration Files

N/A

tfvars variables values

N/A

Debug Output/Panic Output

N/A

Expected Behaviour

either set the dns_prefix_private_cluster to the var.prefix value when private cluster enabled, or provide an additional variable for dns_prefix_private_cluster to explicitly set.

Only dns_prefix or dns_prefix_private_cluster can be set on a given cluster per the documentation: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#dns_prefix_private_cluster

Actual Behaviour

There is no way to set dns_prefix_private_cluster for a private enabled cluster, so it defaults to a randomly generated value.

https://github.com/Azure/terraform-azurerm-aks/blob/main/main.tf
image

Steps to Reproduce

No response

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant