-
Notifications
You must be signed in to change notification settings - Fork 271
Description
Describe the bug
Adopted resource API Group is set to services.k8s.aws which is an issue for users who want to use multiple services. Multiple controllers will listen to the events on the same adopted resource CR (Kind, group, version)
and each controller will try to adopt the target AWS resource and update the same source adoption resource CR.
Although only one will succeed because the reconciler will not be able to instantiate a resourceManager object if the target is from a different service it's still a problem because the status will be incorrect and always say ACK.Adopted False from the controller which fails to adopt(backoff and error).
Another problem of having the same CRD group is when user updates one of the controllers and the spec/version etc have changed
Workaround
The problem can be mitigated by changing installation to namespace scoped but it is not the right solution and is not supported in ACK as of today
Steps to reproduce
Run 2 service controllers with runtime 0.1.0 and adopt a resource
Expected outcome
Set CRD group to <service-name>.services.k8s.aws instead of services.k8s.aws like any other resource in the service. It is only capable of adopting resources of the same service anyway