Open displague opened 2 years ago
That's due to the look-up mechanism we have for this feature where for each field we check whether there is a referencer field, hence no error if nothing hits the given reference entry. One option could be to validate the whole configuration object before starting any operation.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What happened?
While working on an Equinix Metal Terrajet provider, I created a
metal_device
project
field reference, associated with themetal_project
identifier.The problem is that
project
is not a valid field formetal_device
. The field isproject_id
.I received no error messages about this typo.
make generate
succeeded.When I eventually discovered the typo and set the field name in the map to
project_id
, an additional file (apis/device/v1alpha1/zz_generated.resolvers.go
) was generated.How can we reproduce it?
https://github.com/crossplane-contrib/provider-tf-equinix-metal/commit/81a6d898d6703cdd63e3d81b174405ac20c7c3d0