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

Fix LKE shuffled node pool diffing #386

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

LBGarber
Copy link
Contributor

@LBGarber LBGarber commented Jul 20, 2021

This pull requests addresses an intermittent non-empty diff on the TestAccLinodeLKECluster_poolUpdates acceptance test. As the Linode API does not guarantee the order of returned node pools, we must adapt the returned node pool list to best match the schema configuration.

Currently this cannot be achieved using a DiffSuppressFunc, so the API response must be sorted in the read routine.
See: hashicorp/terraform-plugin-sdk#477

@LBGarber LBGarber force-pushed the fix-shuffled-np-diff branch 2 times, most recently from 95a7ff0 to 7e067b9 Compare July 21, 2021 02:29
@LBGarber LBGarber marked this pull request as draft July 21, 2021 12:40
@LBGarber LBGarber force-pushed the fix-shuffled-np-diff branch from 7e067b9 to 98183f0 Compare July 21, 2021 13:02
@LBGarber LBGarber marked this pull request as ready for review July 21, 2021 15:15
Copy link
Contributor

@0xch4z 0xch4z left a comment

Choose a reason for hiding this comment

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

Looks good! just some small changes

linode/resource_linode_lke_cluster.go Outdated Show resolved Hide resolved
linode/resource_linode_lke_cluster.go Outdated Show resolved Hide resolved
linode/resource_linode_lke_cluster.go Outdated Show resolved Hide resolved
@LBGarber LBGarber force-pushed the fix-shuffled-np-diff branch from bd7dfc3 to d7dd7ab Compare July 21, 2021 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants