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

Cleanup RabbitMQ configuration resource #215

Merged
merged 3 commits into from
Aug 2, 2023
Merged

Conversation

tbroden84
Copy link
Contributor

Create/Update
Both Create/Update only update the RabbitMQ config, re-use the update function for both of them. Also determine if any schema argument have been updated with d.HasChange(k). Then only update changed arguments.

Related to #214 Will still not work on initial resource create, due to to old Terraform Plugin SDK version. Not possible to detect schema argument using default values (e.g. string = "", int = 0). Since unset values cannot be represented as null and therefore are given default values.

Read
Updated read function to not set default configuration values for

  • connection_max
  • queue_index_embed_msgs_below
  • max_message_size

Utilize the d.HasChange(key) to determine which resource arguments
being changed. If no change detected at all (during initial create)
don't make the API backend call.
@tbroden84 tbroden84 merged commit b9f5d64 into main Aug 2, 2023
@tbroden84 tbroden84 deleted the rmq-config-cleanup branch August 2, 2023 11:38
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