Open yangy30 opened 4 months ago
Hey @yangy30 , thanks for raising this.
I will also try to reproduce as it seems that we can handle the lifecycle of the result object better.
By the looks of it, it seems that the operator is updating the result object with an old revision or object number and then the operation is getting retried successfully in the next reconciliation loop.
I am still unsure how the result spec can be empty if the operation is not successful though.
I am wondering if you see any issues in the k8sgpt pod logs. The k8sgpt pod will make the inference call to the your AI backend which if it fails it might get an empty response back and write it to the results object.
Checklist
Affected Components
K8sGPT Version
v0.1.6
Kubernetes Version
v1.28.11
Host OS and its Version
Rocky Linux 8.10
Steps to reproduce
1. When the error persists, the results are occasionally empty.
2. K8sGPT will print error logs, but it does not affect usage.
Expected behaviour
Actual behaviour
No response
Additional Information