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 for BYO kubelet_identity #12037

Merged
merged 5 commits into from
Jun 7, 2021

Conversation

aristosvo
Copy link
Collaborator

@aristosvo aristosvo commented Jun 2, 2021

Fixes #11980. Feature in Preview.

Register before testing:

az feature register --namespace Microsoft.ContainerService -n CustomKubeletIdentityPreview
# wait until registered:
watch az feature list -o table --query "\"[?contains(name, 'Microsoft.ContainerService/CustomKubeletIdentityPreview')].{Name:name,State:properties.state}\""
az provider register --namespace Microsoft.ContainerService

Acceptance Tests run:

  • TestAccKubernetesCluster_userAssignedKubeletIdentity (with BYO Kubelet Identity)
  • TestAccKubernetesCluster_userAssignedIdentity (without BYO Kubelet Identity)
❯ make acctests SERVICE='containers' TESTARGS='-run=TestAccKubernetesCluster_userAssigned'
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./azurerm/internal/services/containers -run=TestAccKubernetesCluster_userAssigned -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
2021/06/02 13:43:06 [DEBUG] not using binary driver name, it's no longer needed
2021/06/02 13:43:08 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccKubernetesCluster_userAssignedIdentity
=== PAUSE TestAccKubernetesCluster_userAssignedIdentity
=== RUN   TestAccKubernetesCluster_userAssignedKubeletIdentity
=== PAUSE TestAccKubernetesCluster_userAssignedKubeletIdentity
=== CONT  TestAccKubernetesCluster_userAssignedIdentity
=== CONT  TestAccKubernetesCluster_userAssignedKubeletIdentity
--- PASS: TestAccKubernetesCluster_userAssignedIdentity (615.75s)
--- PASS: TestAccKubernetesCluster_userAssignedKubeletIdentity (710.19s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/containers    714.228s

ToDo:

  • Docs

@ghost ghost added the size/M label Jun 2, 2021
@ghost ghost added size/L documentation and removed size/M labels Jun 2, 2021
@aristosvo aristosvo changed the title kubernetes_cluster: Support for BYO kubelet_identity azurerm_kubernetes_cluster: Support for BYO kubelet_identity Jun 4, 2021
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

This is looking good but I do have a doc question to make things a little more clear

website/docs/r/kubernetes_cluster.html.markdown Outdated Show resolved Hide resolved
@aristosvo aristosvo requested a review from mbfrahry June 7, 2021 18:56
Copy link
Member

@mbfrahry mbfrahry 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 @aristosvo!

@mbfrahry mbfrahry merged commit 44ac8b3 into hashicorp:master Jun 7, 2021
mbfrahry added a commit that referenced this pull request Jun 7, 2021
@dwrusse
Copy link

dwrusse commented Jun 11, 2021

Is there any way to enable the kubeletpreview provider via terraform? I was hoping to embed this into a module that will be used on several different accounts.

@aristosvo
Copy link
Collaborator Author

@dwrusse Would https://www.terraform.io/docs/language/resources/provisioners/local-exec.html maybe work for you combined with az cli?

@dwrusse
Copy link

dwrusse commented Jun 11, 2021

Potentially, yes. I was hoping for a more "native" terraform method, but I agree with you that there likely isn't. Thanks!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, 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 Jul 12, 2021
@aristosvo aristosvo deleted the feature/byo-kubelet-identity branch July 12, 2021 06:39
@aristosvo aristosvo restored the feature/byo-kubelet-identity branch April 14, 2023 07:00
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.

Support Bring your own kubelet MI
3 participants