add tracing for failed pods
@@ -165,6 +165,13 @@ func (c *Controller) syncFunctionInvocation(cr *v1alpha1.IBFunctionInvocation, l
cr.Status.State = pod.Status.ContainerStatuses[0].State
cr.Status.NodeName = pod.Spec.NodeName
log.Info("Updating job status")
+
+ if cr.Status.State.Terminated != nil {
+ if cr.Status.State.Terminated.Message == "Error" {
+ log.Errorf("%+v\n", pod)
+ }
+ }
+
return sdk.Update(cr)
}
