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 cluster resource status inconsistent #108

Merged
merged 4 commits into from
Mar 11, 2024

Conversation

shiyuhang0
Copy link
Collaborator

@shiyuhang0 shiyuhang0 commented Mar 6, 2024

What problem does this PR solve?

close #107

What is changed and how it works?

In this PR #106 we add UseStateForUnknown for cluster_status. However, this causes the #107.

Actually, UseStateForUnknown is for the attribute that will not be changed after the update. cluster_status is not suitable for it. The root cause of #106 lies in hashicorp/terraform-plugin-framework#669. What we should do for #106 is upgrade terraform-plugin-framework rather than add UseStateForUnknown.

This PR removes UseStateForUnknown for cluster_status which was wrong introduced in #106, and upgrade the version of terraform-plugin-framework. This should fix #107 and #105.

This PR also upgrade:

Check List

  • Possible to add a test?
  • Don't forget to run go generate if you modify examples.

@shiyuhang0 shiyuhang0 changed the title fix inconsisitence Fix inconsistent Mar 6, 2024
@shiyuhang0 shiyuhang0 changed the title Fix inconsistent Fix cluster resource status inconsistent Mar 6, 2024
@shiyuhang0 shiyuhang0 merged commit 8d3c54d into tidbcloud:main Mar 11, 2024
3 checks passed
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.

[BUG] Error: Provider produced inconsistent result after apply
2 participants