Currently, the CatForAdoption status is set to ready after being added to the config map. Ideally, it should only be set when the adoption-center deployment is ready and the information is available at /animals endpoint.
This can be achieved by adding another reconciler watching deployment resource in the operator, and set Cat status according to deployment status.
Currently, the
CatForAdoptionstatus is set toreadyafter being added to the config map. Ideally, it should only be set when the adoption-center deployment is ready and the information is available at/animalsendpoint.This can be achieved by adding another reconciler watching deployment resource in the operator, and set Cat status according to deployment status.