Expose modules errors on API endpoint
Is your feature request related to a problem? Please describe. Each module renders K8s resources from a template. While doing that, some errors can occur. Those errors are already present on the CRD, but still need to be mapped to the DTO model.
Describe the solution you'd like You will need to add the errors field here and map it in the mapper function.
Hi @petar-cvit can I take this issue?
Hey @doncicuto, thanks
Hi @petar-cvit I've unassigned this issue to me as I can't see a clear path for this. I'll finish my pending PR first and try to revisit it later
I want to give a shot !
Hey @patelajay745, sure thing
Hello @petar-cvit . Could not get the requirement? Could you please elaborate?
Thank you
The goal of the issue is to add the ReconciliationStatus to the response when backend is requested for a specific Module here. You will need to add the status to the response and map it from the Module struct
Hey @patelajay745, do you have any updates on the issue? Let me know if you have any questions
I am not sure. Is this what I'm supposed to do?
@patelajay745 yeah that looks good, I would just prefer if we put reconciliation status in a nested struct inside dto.Model and add other ReconciliationStatus fields
Does that make sense?
@patelajay745 looks good, but can we not import v1alpha1 package, but create a new dto model? You can open a PR so we can comment there, it will be easier to talk over code 😄