-
Notifications
You must be signed in to change notification settings - Fork 271
Description
Describe the bug
When using a resolved reference, the reconciler will throw a false positive just before it attempts to create the resource, due to the initial ResolveReferences setting the Spec fields.
The initial ResolveReferences (called before ReadOne) resolves the *Ref fields on the object and sets the corresponding concrete values on the spec. Later, just before calling Create, the reconciler calls ResolveReferences again . This time, since the spec fields have already been populated, the method returns an error saying that both resource reference wrapper and ID cannot be used together. The resource is therefore never created, and this reconciler loops indefinitely.
Steps to reproduce
- Create any resource with a
*Reffield, and populate that field with a valid value.
Expected outcome
The resource should be created successfully, without any reconciliation issues.