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

cluster_node_pool/kubernetes_cluster remove node_labels forceNew #16360

Conversation

qiqingzhang
Copy link
Contributor

@qiqingzhang qiqingzhang commented Apr 13, 2022

create a public pull request for cluster_node_pool/kubernetes_cluster remove node_labels forceNew

After removing force new, we tested the behavior of this property.

test result after update:
1: TestAccKubernetesCluster_defaultNodePool
image

2: TestAccKubernetesClusterNodePool_nodeLabels
image

@tombuildsstuff
Copy link
Contributor

@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)

@grayzu
Copy link
Collaborator

grayzu commented Apr 13, 2022

@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."

Copy link
Member

@stephybun stephybun left a 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?

@qiqingzhang qiqingzhang deleted the branch-cluster_node_pool_and_cluster_node_labels branch April 24, 2022 07:49
@qiqingzhang qiqingzhang restored the branch-cluster_node_pool_and_cluster_node_labels branch April 24, 2022 07:49
@qiqingzhang qiqingzhang reopened this Apr 24, 2022
@ms-henglu
Copy link
Contributor

Hi @stephybun , would you please take another look?

@stephybun
Copy link
Member

@ms-henglu, a test that updates the node labels is still missing.

@qiqingzhang
Copy link
Contributor Author

qiqingzhang commented May 6, 2022

Hi @stephybun, the node labels test case already exists, we don't need to create

func TestAccKubernetesCluster_nodeLabels(t *testing.T) {

func TestAccKubernetesClusterNodePool_nodeLabels(t *testing.T) {

@qiqingzhang qiqingzhang force-pushed the branch-cluster_node_pool_and_cluster_node_labels branch from 5c570ee to f19f916 Compare May 7, 2022 09:16
@github-actions github-actions bot added size/XL and removed size/XS labels May 7, 2022
@qiqingzhang qiqingzhang force-pushed the branch-cluster_node_pool_and_cluster_node_labels branch from f19f916 to 4376ba8 Compare May 7, 2022 09:38
@github-actions github-actions bot added size/XS and removed size/XL labels May 7, 2022
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Thanks @heiazuo, LGTM 👍

@stephybun stephybun merged commit c12450a into hashicorp:main May 9, 2022
@github-actions github-actions bot added this to the v3.6.0 milestone May 9, 2022
stephybun added a commit that referenced this pull request May 9, 2022
@github-actions
Copy link

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!

@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 Jun 17, 2022
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.

5 participants