-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
cluster_node_pool/kubernetes_cluster
remove node_labels forceNew
#16360
cluster_node_pool/kubernetes_cluster
remove node_labels forceNew
#16360
Conversation
@heiazuo whilst this is true for newly provisioned clusters, is this behaviour consistent for clusters created previously (e.g. a month ago)? The behaviour of the AKS API depends on when the AKS Cluster was provisioned, fwiw - so a cluster created today can have different behaviours to a cluster from last week (and depends on the kubernetes version being used etc) |
@tombuildsstuff, I just pinged the AKS team and they said "So long as you’re using the newer rest API/SDK, it’s the same for any version." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR @heiazuo. The docs should be amended since the resource will no longer be recreated if the node labels are updated. Can you also please add a test that updates the node labels?
Hi @stephybun , would you please take another look? |
@ms-henglu, a test that updates the node labels is still missing. |
Hi @stephybun, the node labels test case already exists, we don't need to create terraform-provider-azurerm/internal/services/containers/kubernetes_cluster_other_resource_test.go Line 145 in f1aa78b
Line 371 in 95496b2
|
5c570ee
to
f19f916
Compare
f19f916
to
4376ba8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @heiazuo, LGTM 👍
This functionality has been released in v3.6.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
create a public pull request for
cluster_node_pool/kubernetes_cluster
remove node_labels forceNewAfter removing force new, we tested the behavior of this property.
test result after update:
1: TestAccKubernetesCluster_defaultNodePool
2: TestAccKubernetesClusterNodePool_nodeLabels