-
Notifications
You must be signed in to change notification settings - Fork 89
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
Deployment traffic filters are computed to not conflict with a traffic filter association resource #632
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once the test is updated 👍
@tobio , I'm curious why the test fails. Did we come across a defect? |
Previously the failing test was expecting that removing the It's a legitimate failure, I should push a fix for it shortly. |
ec/ecresource/deploymentresource/deployment/v2/remove_managed_traffic_filters_when_null.go
Outdated
Show resolved
Hide resolved
ec/ecresource/deploymentresource/deployment/v2/remove_managed_traffic_filters_when_null.go
Outdated
Show resolved
Hide resolved
@tobio , will it work in case of imported resource? |
I'm curious whether the plan modifier can lead to the inconsistent result errors. E.g. once the modifier set new value to |
This shouldn't be the case, and I've tested the flow where a rule is added with a
No, the test is setting the
Nope, I initially wanted to do this but basically it doesn't work. Explicitly setting this to an empty set led to a bunch of inconsistent result errors, to the point where the private state approach was simpler in the end. Setting this to an empty set required updating the read result to set state to an empty set when traffic filters are not included in the API response. There were edge cases around having an explicit empty set in the The private state approach theoretically allows users to manage traffic filters in the |
e5801bb
to
06363dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
It looks like 2 acc tests related to traffic filters fail. |
aed66e7
to
90a71bb
Compare
Description
Marks the ec_deployment traffic_filter attribute as computed, since it can also be managed via a ec_deployment_traffic_filter_association resource.
Related Issues
Fixes #621
Fixes #419
How Has This Been Tested?
Manually, acceptance tests
Types of Changes
Readiness Checklist