Fail action's phase on synchronous errors
@@ -325,6 +325,7 @@ func (c *Controller) handleActionSet(as *crv1alpha1.ActionSet) (err error) {
reason := fmt.Sprintf("ActionSetFailed Action: %s", as.Status.Actions[i].Name)
c.logAndErrorEvent(fmt.Sprintf("Failed to launch Action %s:", as.GetName()), reason, err, as, bp)
as.Status.State = crv1alpha1.StateFailed
+ as.Status.Actions[i].Phases[0].State = crv1alpha1.StateFailed
_, err = c.crClient.CrV1alpha1().ActionSets(as.GetNamespace()).Update(as)
return errors.WithStack(err)
}
