You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to observe a group that was pre-created outside of Crossplane. I wish to look it up based on its name or path, or a combination there of. The goal is to avoid users from populating the group id (they are easy to misconfigure).
The only way to observe an external resource that has not been created by the provider itself is to set manually set crossplane.io/external-name annotation to the corresponding ID / resource name. Normally this would be automatically by the provider before or after the creation of the resource, depending on whether it is an auto-generated ID or not.
What happened?
I would like to observe a group that was pre-created outside of Crossplane. I wish to look it up based on its name or path, or a combination there of. The goal is to avoid users from populating the group id (they are easy to misconfigure).
I have tried a few approaches without success.
How can we reproduce it?
Attempt that was closest to get an outcome:
The logs show that it found the resource (ID 870), but would not update due to mgmt policies..
The example below failed because the external-name is not an integer (i cant put "870" because thats what i wish to lookup!)
Then i tried uncommenting the forProvider because they are required...but that did not work because metadata.name took precedence
I am starting to think i need to create myself a lookup table rather than trying to observe it..
What environment did it happen in?
Crossplane version: v1.16
Crossplane Provider GitLab version: v0.9.0
The text was updated successfully, but these errors were encountered: