Closed ksudate closed 2 years ago
@tmrekk121 it looks to me an expected behavior. Do you think it better not to print error message??
From the issue title, I understand that you want it not to print error message 😄 To understand more, you don't want to output error message only when the operator can't not find the resource? (in other words, it's ok to output error message when the operator can't fetch the resource for the other reason) Correct?
@tmrekk121 Again, to me, this is an expected behavior. Can you clarify the issue, and what's an expected behavior?
I guess Not to have error messages from the Gatling operator
is a goal on this issue.
So my approach is to suppress delete events as we don't take any action in the reconciliation loop when invoked after the gatlingv1alpha1.Gatling is actually deleted
Manually deleting a Gatling resource will output an error.
This error occurs when a gatling resource is deleted and Reconcile detects the event and executes it, but the gatling resource does not already exist, resulting in an error at L70. https://github.com/st-tech/gatling-operator/blob/194ad16069b18396ec9a735d8e7eb7af8ba1e09e/controllers/gatling_controller.go#L70