crossplane-runtime icon indicating copy to clipboard operation
crossplane-runtime copied to clipboard

Reference resolver without importing the target type

Open muvaf opened this issue 3 years ago • 2 comments

What problem are you facing?

The APIResolver implementation expects you to provide strong typed instance of the target type to work. However, this causes import cycles in some cases. See https://github.com/crossplane/provider-aws/issues/1042

How could Crossplane help solve your problem?

We can have a new resolver that can work with unstructured.Unstructured object based on fieldpath library, requiring the type as a string. Alternatively, we can figure out a way to get the schema of the controller manager to that context to query the type with kind string, hence still work with the strong-typed but require only the kind string.

muvaf avatar Jan 31 '22 13:01 muvaf

Any Suggestion for Implementation ?

haarchri avatar Jun 30 '22 18:06 haarchri

Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as stale because it has had no activity in the last 90 days. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

github-actions[bot] avatar Sep 03 '24 09:09 github-actions[bot]