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: support private_dns_zone_id with service_principal #10737

Merged
merged 3 commits into from
Mar 1, 2021
Merged

azurerm_kubernetes_cluster: support private_dns_zone_id with service_principal #10737

merged 3 commits into from
Mar 1, 2021

Conversation

favoretti
Copy link
Collaborator

@favoretti favoretti commented Feb 25, 2021

AKS supports private DNS zone ID not only with user managed identity,
but also with a service principal.

Fixes #10558

service_principal

AKS supports private DNS zone ID not onlu with user managed identity,
but also with a service principal.

Fixes #10558
@ghost ghost added the size/M label Feb 25, 2021
@favoretti
Copy link
Collaborator Author

2021/02/25 13:34:37 [DEBUG] not using binary driver name, it's no longer needed
2021/02/25 13:34:37 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZone
=== PAUSE TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZone
=== CONT  TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZone
--- PASS: TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZone (819.98s)

$ TF_ACC=1 go test -v ./azurerm/internal/services/containers -timeout=1000m -run=TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneAndServicePrincipal -run=TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneSystem
2021/02/25 13:57:02 [DEBUG] not using binary driver name, it's no longer needed
2021/02/25 13:57:02 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneSystem
=== PAUSE TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneSystem
=== CONT  TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneSystem
--- PASS: TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneSystem (785.89s)

$ TF_ACC=1 go test -v ./azurerm/internal/services/containers -timeout=1000m -run=TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneAndServicePrincipal
2021/02/25 14:10:35 [DEBUG] not using binary driver name, it's no longer needed
2021/02/25 14:10:35 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneAndServicePrincipal
=== PAUSE TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneAndServicePrincipal
=== CONT  TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneAndServicePrincipal
--- PASS: TestAccKubernetesCluster_privateClusterOnWithPrivateDNSZoneAndServicePrincipal (783.55s)

@ghost ghost added the documentation label Feb 25, 2021
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @favoretti

Thanks for this PR

Taking a look through here whilst on the whole this looks pretty good - support for Service Principals within AKS is deprecated and will be removed in the future, as such we should de-emphasis that if possible.

Thanks!

website/docs/r/kubernetes_cluster.html.markdown Outdated Show resolved Hide resolved
@favoretti
Copy link
Collaborator Author

@tombuildsstuff Understood. Done :)

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for pushing those changes @favoretti 👍

@tombuildsstuff
Copy link
Contributor

Test passes:

Screenshot 2021-03-01 at 08 54 20

@tombuildsstuff tombuildsstuff merged commit 247c08e into hashicorp:master Mar 1, 2021
tombuildsstuff added a commit that referenced this pull request Mar 1, 2021
@ghost
Copy link

ghost commented Mar 5, 2021

This has been released in version 2.50.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.50.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Mar 31, 2021

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

private_dns_zone_id doesn't work with Service Principals
2 participants