Skip to content
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

SetIdentifierArgumentsFn use external name as input instead of name #211

Closed
dougsong opened this issue May 31, 2023 · 1 comment
Closed
Labels
bug Something isn't working needs:triage

Comments

@dougsong
Copy link

What happened?

The following picture in add-new-resource-long shows SetIdentifierArgumentFn use metadata.name as input, but as source code shown, actual use external name, is this picture drawn wrong, or do I understand it wrong?

https://github.com/upbound/upjet/blob/f79f70f4904587ff29688f20f7380afbc33e842b/pkg/terraform/files.go#L66
https://github.com/upbound/upjet/blob/f79f70f4904587ff29688f20f7380afbc33e842b/pkg/config/resource.go#L28

@dougsong dougsong added bug Something isn't working needs:triage labels May 31, 2023
@ulucinar
Copy link
Collaborator

Hi @dougsong,
Per the Crossplane resource model, the source of truth for the external resource's name is the external-name annotation:
https://github.com/crossplane/crossplane/blob/master/design/one-pager-managed-resource-api-design.md#external-resource-name

We may fix the diagram if it's confusing. The SetIdentifierArgumentsFn arrow should originate from the external-name annotation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
None yet
Development

No branches or pull requests

3 participants