-
-
Notifications
You must be signed in to change notification settings - Fork 133
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(fail_on): Added fail_on list to enable failing plan on condition such as decreasing partition count #432
base: main
Are you sure you want to change the base?
Conversation
…such as decreasing partition count
@Mongey, Is there anything you need here, or do I need to tag someone as a reviewer? |
Not sure whats up with your lint/testacc mine is very different. And obviously I can't fix the lint issue for upstream.
|
I would like some help here. Should I not do an ACC test the way I am doing it to test the provider? I think this sometimes, but not always, throws off the testing, as it gets confused about which provider to use. |
@dbmurphy I'll try locally. I've not really sure what to make of the feature though. |
I don't think so it's more akin to termination protection with AWS resources that would reject plans. however as Kafka lacks support for this the way the aws api does this simulated the same pattern I could move it to the resource level and call its termination protection but I was thinking to make a generic provider level list we could set for future use case if people wanted to prevent user or acl changes in the same termination protection way. |
When using the provider, we found we wanted to fail plans if the partition count was reduced rather than trigger ForceNew.
To support this but let others choose to replace the resource, we added
fail_on
, a list of string conditions. The code can check for these to override behaviors, which you can pass in when starting the provider to feature flag this change.