-
Notifications
You must be signed in to change notification settings - Fork 235
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
test:add a scenario test for unset fields in bigquerydataset #3329
test:add a scenario test for unset fields in bigquerydataset #3329
Conversation
58e48f5
to
bc7a9bc
Compare
/assign @jingyih |
bc7a9bc
to
27c48e2
Compare
tests/e2e/testdata/scenarios/bigquerydataset_unsetfields/script.yaml
Outdated
Show resolved
Hide resolved
tests/e2e/testdata/scenarios/bigquerydataset_unsetfields/_export5.yaml
Outdated
Show resolved
Hide resolved
27c48e2
to
fa66e51
Compare
fa66e51
to
c3244de
Compare
/assign @acpana |
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
/assign @maqiuyujoyce |
Unsetting a field in a CR and reconcile it via the TF-based/DCL-based controller is to unmanage the field. @xiaoweim when you mentioned
If it is the TF-based controller maintains the values of the unset fields, then I think those become externally-managed fields. @cheftako @yuwenma is it the correct understanding that we still support backwards compatibility of externally-managed fields feature when we migrate a resource to direct? |
My understanding is that, the purpose of this test is to document the current behavior of the TF-based implementation, ensuring we keep the same behavior in the direct controller. |
@jingyih yes, I understand. In that case, does it mean we don't plan to / don't need to support the actual unsetting of those fields (i.e. fields not set in the underlying GCP resource)? |
Maybe I am missing some context, but my initial understanding was that this resource is widely used, so we aim to preserve its existing behavior while migrating its implementation to a direct controller. Is there a specific bug or issue with this resource that requires properly unsetting the field? |
I don't recall any myself. Double checking just in case! |
@jingyih that's correct! Thanks for the explanation. @xiaoweim Could you upload both direct and tf-based log so we can do the comparison? |
Log for direct controller implementation is pending the go client migration PR #3125. |
Yes @yuwenma , Jingyi is right. The direct controller log will be reflected later after PR #3125 is merged. |
/approve Hold in case @yuwenma has further comments but overall lgtm. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maqiuyujoyce The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
That's fine. Can we have #3125 goes in first and then update this PR to include both TF-based and direct log? |
/hold cancel |
989a8c0
into
GoogleCloudPlatform:master
This PR adds a scenario test to log the behavior of the BigQueryDataset terraform controller when updating the resource with fields unset
This test will later be used to verify the behavior of direct controller being backward compatible after #3125 is merged.
make ready-pr
to ensure this PR is ready for review.