community
community copied to clipboard
Adopted resource reconciler does not check for incorrect identifier
Describe the bug
When creating an adopted resource that should require a nameOrID
, if you provide it with an ARN
, the reconciler will not throw an error that you have mismatched the identifier type. This also works with providing a nameOrID
when expecting an ARN
.
Steps to reproduce
- Create a resource that requires a
nameOrID
field to adopt - Attempt to adopt the resource by setting
spec.aws.arn
to any value - See the error is related to the describe call, or the adoption even succeeds (some
ReadMany
calls allow for an empty identifier)
Expected outcome The adoption reconciler should place the adopted resource into a terminal condition with an appropriate error message about the incorrect identifier.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle stale
/remove-lifecycle stale
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle stale
/lifecycle frozen