Fix: optimize skip reconcile and expose error if the traits patch an invalid workload like terraform (#5334)

Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>

Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
This commit is contained in:
Tianxin Dong
2023-01-13 17:04:22 +08:00
committed by GitHub
parent 9ab6fe4188
commit 5158fcf6c1
3 changed files with 38 additions and 3 deletions

View File

@@ -254,7 +254,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
}
}
case workflowv1alpha1.WorkflowStateSkipped:
return ctrl.Result{}, nil
return r.result(nil).requeue(executor.GetBackoffWaitTime()).ret()
default:
}