diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 4021226424..dcf31881f8 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -487,6 +487,10 @@ func (c *Controller) executeDeferPhase(ctx context.Context, var rf func(*crv1alpha1.ActionSet) error if err != nil { rf = func(as *crv1alpha1.ActionSet) error { + as.Status.State = crv1alpha1.StateFailed + as.Status.Error = crv1alpha1.Error{ + Message: err.Error(), + } as.Status.Actions[aIDX].DeferPhase.State = crv1alpha1.StateFailed return nil }