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

Server side config check #136

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rojopolis
Copy link

Supersedes #135
Addresses #134

This uses a "dry-run" approach to try to determine if the server will require the topic to be recreated. Unfortunately, the server returns INVALID_CONFIG with an error message describing that the topic will need to be recreated so this just matches on the string "create a new topic" which is probably too brittle to make this useful in cases other than my specific case.

This does catch some errors at plan time that would otherwise only be caught at apply time, so it's still somewhat useful in general.

Note: diffToTopic and metaToTopic are identical except for the input type... I'm not sure how to make a function accept multiple types... It may have something to do with an interface, but I'm not sure.

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.

1 participant